Skip to content
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

Add materialTheme field to ThemeData #153

Closed

Conversation

klondikedragon
Copy link
Contributor

Commit 2e94931 automatically adds a Material theme to the widget tree. However, this overrides any custom Material theme that might have been specified above the widget tree. Many apps might still use a mix of material and fluent_ui widgets. Now that a Material theme is always automatically added, allow a custom Material theme to be specified as part of fluent_ui.ThemeData with the optional materialTheme field.

If this field is not specified, the behavior is the same as before (it will generate a Material theme with the appropriate brightness based on the brightness of the fluent_ui theme).

Fixes #152.

Pre-launch Checklist

  • I have run dartfmt on all changed files
  • I have updated CHANGELOG.md with my changes
  • I have run "optimize/organize imports" on all changed files
  • I have addressed all analyzer warnings as best I could
  • I have added/updated relevant documentation
  • I have run flutter pub publish --dry-run and addressed any warnings

Commit 2e94931 automatically adds a Material theme to the widget tree.
However, this overrides any custom Material theme that might have been
specified above the widget tree. Many apps might still use a mix of
material and fluent_ui widgets. Now that a Material theme is always
automatically added, allow a custom Material theme to be specified as
part of fluent_ui.ThemeData with the optional materialTheme field.
If this field is not specified, the behavior is the same as before (it
will generate a Material theme with the appropriate brightness based
on the brightness of the fluent_ui theme).
@bdlukaa
Copy link
Owner

bdlukaa commented Feb 5, 2022

Hello! Thanks for your contribution! Tho, I don't think adding a new property is the proper solution to the issue. Instead, I opened #155.

@bdlukaa bdlukaa closed this Feb 5, 2022
@bdlukaa bdlukaa added the invalid This doesn't seem right label Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 FluentApp overriding custom material theme
2 participants