WiredashThemeData constructor
WiredashThemeData({
- Brightness brightness = Brightness.light,
- DeviceClass deviceClass = DeviceClass.handsetLarge400,
- Color? primaryColor,
- Color? secondaryColor,
- Color? textOnPrimary,
- Color? textOnSecondary,
- Color? primaryBackgroundColor,
- Color? secondaryBackgroundColor,
- Color? primaryTextOnBackgroundColor,
- Color? secondaryTextOnBackgroundColor,
- Color? primaryContainerColor,
- Color? textOnPrimaryContainerColor,
- Color? secondaryContainerColor,
- Color? textOnSecondaryContainerColor,
- Color? appBackgroundColor,
- Color? appHandleBackgroundColor,
- Color? errorColor,
- Color? firstPenColor,
- Color? secondPenColor,
- Color? thirdPenColor,
- Color? fourthPenColor,
- Size? windowSize,
- WiredashTextTheme? textTheme,
Implementation
factory WiredashThemeData({
Brightness brightness = Brightness.light,
DeviceClass deviceClass = DeviceClass.handsetLarge400,
Color? primaryColor,
Color? secondaryColor,
Color? textOnPrimary,
Color? textOnSecondary,
Color? primaryBackgroundColor,
Color? secondaryBackgroundColor,
Color? primaryTextOnBackgroundColor,
Color? secondaryTextOnBackgroundColor,
Color? primaryContainerColor,
Color? textOnPrimaryContainerColor,
Color? secondaryContainerColor,
Color? textOnSecondaryContainerColor,
Color? appBackgroundColor,
Color? appHandleBackgroundColor,
Color? errorColor,
Color? firstPenColor,
Color? secondPenColor,
Color? thirdPenColor,
Color? fourthPenColor,
Size? windowSize,
WiredashTextTheme? textTheme,
}) {
return WiredashThemeData._(
primaryColor: primaryColor ?? const Color(0xff1A56DB),
secondaryColor: secondaryColor,
textOnPrimary: textOnPrimary,
textOnSecondary: textOnSecondary,
brightness: brightness,
deviceClass: deviceClass,
windowSize: windowSize ?? Size.zero,
primaryBackgroundColor: primaryBackgroundColor,
secondaryBackgroundColor: secondaryBackgroundColor,
primaryTextOnBackgroundColor: primaryTextOnBackgroundColor,
secondaryTextOnBackgroundColor: secondaryTextOnBackgroundColor,
primaryContainerColor: primaryContainerColor,
textOnPrimaryContainerColor: textOnPrimaryContainerColor,
secondaryContainerColor: secondaryContainerColor,
textOnSecondaryContainerColor: textOnSecondaryContainerColor,
appBackgroundColor: appBackgroundColor,
appHandleBackgroundColor: appHandleBackgroundColor,
errorColor: errorColor,
firstPenColor: firstPenColor,
secondPenColor: secondPenColor,
thirdPenColor: thirdPenColor,
fourthPenColor: fourthPenColor,
textTheme: textTheme,
);
}