material-foundation / material-foundation/flutter-packages

Add a method to check whether the platform supports dynamic theming

Open
#390 7 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted p: dynamic_color
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.