fixes (#17624)
This commit is contained in:
parent
60272ee5bd
commit
6c9a7c5803
@ -345,17 +345,19 @@ class _AppBarState extends State<AppBar> {
|
|||||||
TextStyle centerStyle = widget.textTheme?.title ?? themeData.primaryTextTheme.title;
|
TextStyle centerStyle = widget.textTheme?.title ?? themeData.primaryTextTheme.title;
|
||||||
TextStyle sideStyle = widget.textTheme?.body1 ?? themeData.primaryTextTheme.body1;
|
TextStyle sideStyle = widget.textTheme?.body1 ?? themeData.primaryTextTheme.body1;
|
||||||
|
|
||||||
final Brightness brightness = widget.brightness ?? themeData.primaryColorBrightness;
|
if (parentRoute?.isCurrent ?? true) {
|
||||||
// TODO(jonahwilliams): remove once we have platform themes.
|
final Brightness brightness = widget.brightness ?? themeData.primaryColorBrightness;
|
||||||
switch (defaultTargetPlatform) {
|
// TODO(jonahwilliams): remove once we have platform themes.
|
||||||
case TargetPlatform.iOS:
|
switch (defaultTargetPlatform) {
|
||||||
SystemChrome.setSystemUIOverlayStyle(brightness == Brightness.dark
|
case TargetPlatform.iOS:
|
||||||
? SystemUiOverlayStyle.light
|
SystemChrome.setSystemUIOverlayStyle(brightness == Brightness.dark
|
||||||
: SystemUiOverlayStyle.dark);
|
? SystemUiOverlayStyle.light
|
||||||
break;
|
: SystemUiOverlayStyle.dark);
|
||||||
case TargetPlatform.android:
|
break;
|
||||||
case TargetPlatform.fuchsia:
|
case TargetPlatform.android:
|
||||||
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);
|
case TargetPlatform.fuchsia:
|
||||||
|
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (widget.toolbarOpacity != 1.0) {
|
if (widget.toolbarOpacity != 1.0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user