material-foundation / material-foundation/flutter-packages
Add a method to check whether the platform supports dynamic theming
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 863
- Forks
- 175
- PR merge metrics
- No merged PRs in 30d
Description
Package
dynamic_color
Description
Is your feature request related to a problem? Please describe.
I have dynamic theming as an option in my app. I would only like to show this option when dynamic themes are truly supported.
Describe the solution you'd like
Add a "supportedByPlatform" method or something along those lines, to check whether dynamic theming is supported by the platform.
Describe alternatives you've considered
I can write the logic myself, but then I'd have to integrate an extra plug-in just for this use case and would have to manually update that logic each and every time more platform support was added to dynamic_color.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the dynamic_color package and tracing how platform support for dynamic theming is currently determined. Define the method's supported and unsupported platform behavior, then add coverage for those cases; the issue is done when callers can reliably decide whether to show the dynamic-theme option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100