flutter_platform_widgets icon indicating copy to clipboard operation
flutter_platform_widgets copied to clipboard

#176 Add Platform theme

Open aqwert opened this issue 4 years ago • 2 comments

PlatformTheme allows for under simple use cases a basic common theme with color. If any substantial differences between the material and cupertino themes are needed then setting the materialTheme and cupertinoTheme properties will be better

Adding documentation update in another commit

aqwert avatar May 06 '21 11:05 aqwert

Could we have light and dark theme support in PlatformTheme? Right now I have resorted to:

PlatformApp(
...
             cupertino: (_, __) => CupertinoAppData(
              theme: MaterialBasedCupertinoThemeData(
                  materialTheme:
                      isDark ? materialDarkTheme : materialLightTheme),
            ),
...
)

which works but it would be nice if it was abstracted away in PlatformTheme.

fotiDim avatar May 14 '21 17:05 fotiDim

@fotiDim I am still working on how light and dark theme will work. CupertinoApp does not have a dark mode property, instead it uses CupertinoDynamicColor

aqwert avatar May 18 '21 09:05 aqwert