fix: 🐛 Android 12+ takes color as static value instead from styles #77
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds support for different splash background colors for light mode and dark mode on Android. When a dark color is provided via the existing
color_dark_androidconfig option, the tool generates color resources in bothvalues/andvalues-night/folders so Android automatically applies the correct theme.Changes:
values-night/directory automatically when dark color is provided@color/splashBgColorinstead of static color values for proper dark mode supportvalues-night-v31/directory support for Android 12+ dark mode styles (only whencolor_dark_androidis provided), ensuringwindowSplashScreenAnimatedIconworks properly in dark modeUsage:
Generated output:
Checklist
fix:,feat:,docs:etc).docsand added dartdoc comments with///.examplesordocs.Breaking Change?
Related Issues
Closes #20
Original prompt