We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I'm confused about how we're supposed to maintain the theme after the app is closed. Right now, here is my code for creating the app:
return DynamicTheme( defaultBrightness: Brightness.light, data: (brightness) => DynamicTheme.of(context)?.data ?? Themes.light.getThemeData(context), themedWidgetBuilder: (context, theme) { return MaterialApp( theme: theme, debugShowCheckedModeBanner: false, title: 'Is It Raining?', home: DataContainerView() ); } );
This doesn't seem to be working for me. DynamicTheme.of(context) always returns null.
DynamicTheme.of(context)
The text was updated successfully, but these errors were encountered:
Dynamic Theme only persists the brightness.
data: (brightness) => ...
contains the brightness which you can use. There you can construct your usual theme using that brightness.
Sorry, something went wrong.
No branches or pull requests
Hello,
I'm confused about how we're supposed to maintain the theme after the app is closed. Right now, here is my code for creating the app:
This doesn't seem to be working for me.
DynamicTheme.of(context)
always returns null.The text was updated successfully, but these errors were encountered: