Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: override of theme data #4

Open
s3ppo opened this issue Apr 20, 2021 · 0 comments
Open

Bug: override of theme data #4

s3ppo opened this issue Apr 20, 2021 · 0 comments

Comments

@s3ppo
Copy link

s3ppo commented Apr 20, 2021

hi!

i set my theme data in main.dart like this:

Widget buildApp(BuildContext context) {
    SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
        statusBarColor: Colors.green[700],
        systemNavigationBarColor: Colors.green[700],
        statusBarBrightness: Brightness.light));
    return OverlaySupport.global(
        child: MaterialApp(
      theme: ThemeData(primarySwatch: Colors.green),
      home: HomePage(),
      navigatorKey: NavigationService.instance.navigationKey,
    ));
  }

so i set the appbar a bit darker then the default color...
Screenshot_20210420-190138

after i call flutter animated dialog popup, the background of the dialog gets a bit darker(gray?)
Screenshot_20210420-190202

and when i close it, it override the SystemChrome settings.. the appbar is now only green and not Colors.green[700] like before
Screenshot_20210420-190207

@JackJonson JackJonson pinned this issue Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant