Replies: 3 comments 2 replies
-
|
Yes, please! I am using PlatformApp which is an abstraction over MaterialApp and CupertinoApp. Theming is an issue since for Cupertino instead of separate light and dark themes, we need to use |
Beta Was this translation helpful? Give feedback.
-
|
I vote yes, as the general case I am looking at is using Flutter Platform Widgets along with doing platform builders for fluent(ms desktop) widgets. In which I would be setting Apple devices to the default CupertinoTheme without the added Material Theme stuff. That being said, it is generally mappable right now given the updated stuff you did in FCS 6. I guess I will find out as this week I am digging in and implementing examples. |
Beta Was this translation helpful? Give feedback.
-
|
I can help with this. It would be really useful for the community as 100% of users voted for a YES. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This request exists also as feature request in the repo issues here: #20
When using
MaterialAppandFlexColorSchemeto makeThemeData, if using Cupertino widgets in such aMaterialAppthey already get themed in a way that that is mapped from the Material theme to the Cupertino theme that those widgets use. This is done automatically byThemeData.However, currently
FlexColorSchemecannot create aCupertinoThemeDatathat could be used to theme aCupertinoApp.It is possible to add a
toCupertinoThememethod toFlexColorSchemethat would return aCupertinoThemeDataobject based on all givenFlexColorSchemeproperties. This theme would however be much more limited and not be able to deliver all the things one can do withThemeData. This is because Cupertino theming capabilities are much more limited in Flutter, as well as in Apple's human interface guide, it has less features than e.g. Material 3.Since a
CupertinoThemeDataonly has these theme properties and no sub-themes, there is really not much one can do to it:Still if it feels like a worthwhile addition, it could be added. The above properties correspond directly to existing ones in
FlexColorSchemeand can easily be mapped to aCupertinoThemeDatain addition toThemeData.If you vote yes, please discuss and explain what a
FlexColorSchemeCupertinoThemeshould include, support and do?The default color mappings from
ThemeDataand its activeColorSchemecolors to above and correct colors inCupertinoThemeDatais already included viaThemeData's default mappings. Which to be honest, while they can be changed, they can't be improved. So there is typically no real reason to change them, and if there really is, it can already be accomplished withcopyWithfor those rare occasions.32 votes ·
Beta Was this translation helpful? Give feedback.
All reactions