You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Developers wanting to retrieve the brightness for a MaterialApp currently have to look it up directly from the Theme, i.e Theme.of(context).brightness .
Proposal
Add Theme.brightnessOf(context) and Theme.maybeBrightnessOf(context), which would be the Material equivalent of
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 flutter doctor -v and a minimal reproduction of the issue.
Activity
Feat: Add brightnessOf method for theme (#163733)
github-actions commentedon Apr 15, 2025
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
flutter doctor -vand a minimal reproduction of the issue.Feat: Add brightnessOf method for theme (flutter#163733)
Feat: Add brightnessOf method for theme (flutter#163733)