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
Idea : Improving theme discover-ability #17013
Comments
cc @HansMuller this could be useful to you given your work on updating the theming mechanism. Please close this issue once you have taken its suggestions and linked bugs into account (i.e. once it is no longer actionable). @Rockvole thanks for the ideas! |
@Rockvole - thanks for all of the suggestions about improving the Material theme system and please accept my apology for not having addressed this issue for such a long time. We are undertaking an long-term project to improve the theme system, it's described here flutter.dev/go/material-theme-system-updates. The doc is open for comments if you're still interested in this topic. |
Thanks @HansMuller for taking an interest in my issue. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I am halfway through my second flutter app and its starting to dawn on me that the Theme system is actually pretty neat. Whenever I have tried to use Themes before they have not worked as expected (mostly due to not finding the correct keywords) and so I gave up and littered my code with color constants and such.
I think with some tweaking the themes could become the default way of changing styles.
By partitioning ThemeData we can use keywords which are consistent :
When wrapping Widgets in Themes the scaffold and the scaffold appBar will take on the theme from the parent ThemeData :
We can also override any part of those themes :
This would improve the current situation because :
const ScaffoldThemeData
for example)backgroundColor
attribute, but inThemeData
it is calledscaffoldBackgroundColor
This idea has a similar theme :) to my previous scheme :
Idea: Reduce nesting in Flutter
The text was updated successfully, but these errors were encountered: