I have tried like this:
return Semantics(
explicitChildNodes: true,
container: true,
child: AnnotatedRegion<SystemUiOverlayStyle>(
value: widget.statusBarTextIsBlack
? SystemUiOverlayStyle.dark
: SystemUiOverlayStyle.light,
child: Semantics(
explicitChildNodes: true,
child: MyPage(),
),
),
);
or do this in func build
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light.copyWith(
statusBarBrightness: Brightness.light,
));
but it useless.I dont know how to solve it.............