-
Notifications
You must be signed in to change notification settings - Fork 95
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
ThemeData Not Working #183
Labels
bug
Something isn't working
Comments
Its because its at the root of the application, so you basically have to put it under one of your stateful widgets that can call setstate AFTER your app has defined its theme (just call setstate on that parent widget when the feedback screen opens really) That being said the text color seems to be black no matter what i do... so i might have to copy edit this project for one of my projects |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.4.1
Library
feedback
Flutter channel
stable
Flutter version
2.8.1
Platform
Android, Windows
Details
ThemeData is not working. I tried changing the colors of the background etc. and everything is white. I am using custom colors which at first i thought was the issue so i switched to built in colors such as Colors.blue, Colors.red, etc. But its still not working for me.
Steps to reproduce
This is My Code:
ThemeProvider( initTheme: initTheme, builder: (context, myTheme) { return BetterFeedback( theme: FeedbackThemeData( background: Theme.of(context).cardColor, feedbackSheetColor: Theme.of(context).bottomAppBarColor, drawColors: [ Colors.red, Colors.green, Colors.blue, Colors.yellow, Theme.of(context).hintColor ], ), feedbackBuilder: (context, onSubmit,scrollController) => CustomFeedbackForm(onSubmit: onSubmit), child: MaterialApp( /* navigatorObservers: <NavigatorObserver>[ observer ],*/ navigatorKey: NavigationService.navigatorKey, localizationsDelegates: context.localizationDelegates, supportedLocales: context.supportedLocales, locale: context.locale, debugShowCheckedModeBanner: false, // Add the locale here home: Home(), theme: myTheme, ) ); })
Output of
flutter doctor -v
No response
The text was updated successfully, but these errors were encountered: