CupertinoBasedMaterialThemeData constructor
- required CupertinoThemeData themeData,
Creates a Material theme with a color scheme based off of the colors from a CupertinoThemeData.
Implementation
CupertinoBasedMaterialThemeData({
required CupertinoThemeData themeData,
}) : materialTheme = ThemeData(
colorScheme: ColorScheme.fromSeed(
seedColor: themeData.primaryColor,
brightness: themeData.brightness ?? Brightness.light,
primary: themeData.primaryColor,
onPrimary: themeData.primaryContrastingColor,
)
);