Skip to content

Bug: override of theme data #4

@s3ppo

Description

@s3ppo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions