From 51b288cc1d6c98d9855539c26166afb8b1717016 Mon Sep 17 00:00:00 2001 From: David Djordjevic Date: Mon, 1 Apr 2024 21:20:34 +0200 Subject: [PATCH] Update widget_toolkit themes --- packages/widget_toolkit/example/lib/main.dart | 16 +- .../src/base/theme/widget_toolkit_theme.dart | 1276 +++++++----- .../theme/widget_toolkit_theme.tailor.dart | 1832 +++++++---------- .../theme/edit_address_theme.dart | 493 +++-- .../theme/edit_address_theme.tailor.dart | 575 ++---- .../theme/item_picker_theme.dart | 28 +- .../theme/language_picker_theme.dart | 122 +- .../theme/search_picker_theme.dart | 67 +- .../theme/search_picker_theme.tailor.dart | 68 +- .../theme/text_field_dialog_theme.dart | 686 +++--- .../theme/text_field_dialog_theme.tailor.dart | 878 +++----- .../test/helpers/golden_helper.dart | 18 +- 12 files changed, 2708 insertions(+), 3351 deletions(-) diff --git a/packages/widget_toolkit/example/lib/main.dart b/packages/widget_toolkit/example/lib/main.dart index 0e49c2ac..5cfac6c5 100644 --- a/packages/widget_toolkit/example/lib/main.dart +++ b/packages/widget_toolkit/example/lib/main.dart @@ -17,19 +17,19 @@ class MyApp extends StatelessWidget { title: 'Widget Toolkit Demo', theme: ThemeData.light() .copyWith(colorScheme: ColorScheme.fromSwatch(), extensions: [ - WidgetToolkitTheme.light, + WidgetToolkitTheme.light(), ItemPickerTheme.light(), - SearchPickerTheme.light, - TextFieldDialogTheme.light, - EditAddressTheme.light, + SearchPickerTheme.light(), + TextFieldDialogTheme.light(), + EditAddressTheme.light(), ]), darkTheme: ThemeData.dark() .copyWith(colorScheme: ColorScheme.fromSwatch(), extensions: [ - WidgetToolkitTheme.dark, + WidgetToolkitTheme.dark(), ItemPickerTheme.dark(), - SearchPickerTheme.dark, - TextFieldDialogTheme.dark, - EditAddressTheme.dark, + SearchPickerTheme.dark(), + TextFieldDialogTheme.dark(), + EditAddressTheme.dark(), ]), home: const MyHomePage(), ); diff --git a/packages/widget_toolkit/lib/src/base/theme/widget_toolkit_theme.dart b/packages/widget_toolkit/lib/src/base/theme/widget_toolkit_theme.dart index 42e4a710..d473190f 100644 --- a/packages/widget_toolkit/lib/src/base/theme/widget_toolkit_theme.dart +++ b/packages/widget_toolkit/lib/src/base/theme/widget_toolkit_theme.dart @@ -6,585 +6,717 @@ import 'design_system/widget_toolkit_design_system.dart'; part 'widget_toolkit_theme.tailor.dart'; -@Tailor(themeGetter: ThemeGetter.none) -class _$WidgetToolkitTheme { - /// region Primary - - static List primaryColor = [ - WidgetToolkitDesignSystem.light().colors.primaryColor, - WidgetToolkitDesignSystem.dark().colors.primaryColor, - ]; - - static List backgroundColor = [ - WidgetToolkitDesignSystem.light().colors.backgroundColor, - WidgetToolkitDesignSystem.dark().colors.backgroundColor, - ]; - - static List scaffoldBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.scaffoldBackgroundColor, - WidgetToolkitDesignSystem.dark().colors.scaffoldBackgroundColor, - ]; - - static List highlightColor = [ - WidgetToolkitDesignSystem.light().colors.highlightColor, - WidgetToolkitDesignSystem.dark().colors.highlightColor, - ]; - - static List primaryGradientStart = [ - WidgetToolkitDesignSystem.light().colors.blue, - WidgetToolkitDesignSystem.dark().colors.darkBlue, - ]; - - static List primaryGradientEnd = [ - WidgetToolkitDesignSystem.light().colors.lightBlue, - WidgetToolkitDesignSystem.dark().colors.blue, - ]; - - /// endregion - - /// region Common widgets - - static List searchTextFieldIconColor = [ - WidgetToolkitDesignSystem.light().colors.black, - WidgetToolkitDesignSystem.dark().colors.mediumWhite, - ]; - - static List searchTextFieldIconColorActive = [ - WidgetToolkitDesignSystem.light().colors.blue, - WidgetToolkitDesignSystem.dark().colors.darkBlue, - ]; - - static List searchTextFieldBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.white, - WidgetToolkitDesignSystem.dark().colors.darkGray, - ]; - - static List searchTextFieldBackgroundColorActive = [ - WidgetToolkitDesignSystem.light().colors.mediumWhite, - WidgetToolkitDesignSystem.dark().colors.darkGray, - ]; - - static List searchTextFieldBorderRadius = [ - WidgetToolkitDesignSystem.light().spacings.xs, - WidgetToolkitDesignSystem.light().spacings.xs, - ]; - - static List searchTextFieldBorderType = [ - Border.all( - color: WidgetToolkitDesignSystem.light().colors.mediumWhite, - width: WidgetToolkitDesignSystem.light().spacings.xxxs, - ), - Border.all( - color: WidgetToolkitDesignSystem.light().colors.mediumWhite, - width: WidgetToolkitDesignSystem.light().spacings.xxxs, - ), - ]; - - static List searchTextFieldIconEdgeInsets = [ - EdgeInsets.symmetric( - horizontal: WidgetToolkitDesignSystem.light().spacings.m, - vertical: WidgetToolkitDesignSystem.light().spacings.s, - ), - EdgeInsets.symmetric( - horizontal: WidgetToolkitDesignSystem.light().spacings.m, - vertical: WidgetToolkitDesignSystem.light().spacings.s, - ), - ]; - - static List searchTextFieldHintStyle = [ - WidgetToolkitDesignSystem.light().typography.h3Reg14.copyWith( - color: WidgetToolkitDesignSystem.dark().colors.gray, +@TailorMixinComponent() +class WidgetToolkitTheme extends ThemeExtension + with _$WidgetToolkitThemeTailorMixin { + const WidgetToolkitTheme({ + required this.primaryColor, + required this.backgroundColor, + required this.scaffoldBackgroundColor, + required this.highlightColor, + required this.primaryGradientStart, + required this.primaryGradientEnd, + required this.searchTextFieldIconColor, + required this.searchTextFieldIconColorActive, + required this.searchTextFieldBackgroundColor, + required this.searchTextFieldBackgroundColorActive, + required this.searchTextFieldBorderRadius, + required this.searchTextFieldBorderType, + required this.searchTextFieldIconEdgeInsets, + required this.searchTextFieldHintStyle, + required this.searchTextFieldTextStyle, + required this.pickerListItemInnerEdgeInsets, + required this.pickerListItemOuterEdgeInsets, + required this.pickerListItemBorderRadius, + required this.pickerListItemSelectedColor, + required this.pickerListItemUnselectedColor, + required this.pickerListItemTextStyle, + required this.captionBold, + required this.textButtonTextStyle, + required this.errorCardIconColor, + required this.errorCardBackgroundColor, + required this.lightRed, + required this.blueLight, + required this.greenLight, + required this.errorCardTextColor, + required this.bottomSheetBarrierColor, + required this.messagePanelBackgroundColor, + required this.bottomSheetLineColor, + required this.bottomSheetBackgroundColor, + required this.bottomSheetBorderColor, + required this.loadingIndicatorColor, + required this.descriptionBold, + required this.titleBold, + required this.descriptionThin, + required this.errorTitle, + required this.disabledFilledButtonBackgroundColor, + required this.filledButtonBackgroundColorDisabled, + required this.filledButtonBackgroundColorPressed, + required this.filledButtonTextColorDisabled, + required this.textButtonTextColorDisabled, + required this.textButtonBackgroundColor, + required this.filledButtonTextColorEnabled, + required this.smallButtonBackgroundColor, + required this.buttonTextColor, + required this.shimmerBaseColor, + required this.shimmerHighlightColor, + required this.white, + required this.buttonBlueGradientEnd, + required this.elevatedButtonBackgroundColor, + required this.textColorWhite, + required this.bodyTextColor2, + required this.smallButtonFilledBackgroundColor, + required this.smallButtonOutlinedBorderColor, + required this.activeButtonLanguageTextColor, + required this.activeButtonTextColor, + required this.disabledButtonTextColor, + required this.black, + required this.activeGradientColorStart, + required this.activeGradientColorEnd, + required this.boxShadowColor, + required this.red, + required this.orange, + required this.orangeLight, + required this.darkBlue, + required this.darkGreen, + required this.textButtonLoadingIndicatorColor, + required this.buttonShadowColor, + required this.buttonPressedColor, + required this.buttonBorderColor, + required this.outlineButtonContentPadding, + required this.outlineButtonTextStyle, + required this.outlineButtonDescriptionTextStyle, + required this.outlineButtonBackgroundColor, + required this.outlineButtonForegroundColor, + required this.outlineButtonBorderColor, + required this.outlineButtonPressedColor, + required this.outlineButtonTextColor, + required this.outlineButtonTextColorDisabled, + required this.bottomSheetHeaderPadding, + required this.bottomSheetCloseButtonPadding, + required this.bottomSheetContentPadding, + required this.messagePanelErrorEdgeInsets, + required this.errorModalContentTitleInsets, + required this.smallEdgeInsets, + required this.mediumEdgeInsets, + required this.largeEdgeInsets, + required this.messagePanelEdgeInsets, + required this.spacingXS1, + required this.spacingXS, + required this.spacingXSS, + required this.spacingS, + required this.spacingM, + required this.spacingL, + required this.spacingXL, + required this.spacingXXL, + required this.spacingXXXXL1, + required this.textButtonIconRightPadding, + required this.textButtonPadding, + required this.appBarTextButtonPadding, + required this.bottomSheetBottomPadding, + required this.checkIcon, + required this.checkCircleIcon, + required this.closeIcon, + required this.dangerIcon, + required this.educateIcon, + required this.greatNewsIcon, + required this.infoCircleIcon, + required this.messageIcon, + }); + + /// region Themes + WidgetToolkitTheme.light() + : primaryColor = WidgetToolkitDesignSystem.light().colors.primaryColor, + backgroundColor = + WidgetToolkitDesignSystem.light().colors.backgroundColor, + scaffoldBackgroundColor = + WidgetToolkitDesignSystem.light().colors.scaffoldBackgroundColor, + highlightColor = + WidgetToolkitDesignSystem.light().colors.highlightColor, + primaryGradientStart = WidgetToolkitDesignSystem.light().colors.blue, + primaryGradientEnd = WidgetToolkitDesignSystem.light().colors.lightBlue, + searchTextFieldIconColor = + WidgetToolkitDesignSystem.light().colors.black, + searchTextFieldIconColorActive = + WidgetToolkitDesignSystem.light().colors.blue, + searchTextFieldBackgroundColor = + WidgetToolkitDesignSystem.light().colors.white, + searchTextFieldBackgroundColorActive = + WidgetToolkitDesignSystem.light().colors.mediumWhite, + searchTextFieldBorderRadius = + WidgetToolkitDesignSystem.light().spacings.xs, + searchTextFieldBorderType = Border.all( + color: WidgetToolkitDesignSystem.light().colors.mediumWhite, + width: WidgetToolkitDesignSystem.light().spacings.xxxs, ), - WidgetToolkitDesignSystem.dark().typography.h3Reg14.copyWith( - color: WidgetToolkitDesignSystem.dark().colors.gray, + searchTextFieldIconEdgeInsets = EdgeInsets.symmetric( + horizontal: WidgetToolkitDesignSystem.light().spacings.m, + vertical: WidgetToolkitDesignSystem.light().spacings.s, ), - ]; - - static List searchTextFieldTextStyle = [ - WidgetToolkitDesignSystem.light().typography.descriptionBold.copyWith( - color: WidgetToolkitDesignSystem.dark().colors.blue, + searchTextFieldHintStyle = + WidgetToolkitDesignSystem.light().typography.h3Reg14.copyWith( + color: WidgetToolkitDesignSystem.dark().colors.gray, + ), + searchTextFieldTextStyle = WidgetToolkitDesignSystem.light() + .typography + .descriptionBold + .copyWith( + color: WidgetToolkitDesignSystem.dark().colors.blue, + ), + pickerListItemInnerEdgeInsets = + const EdgeInsets.symmetric(horizontal: 20, vertical: 12), + pickerListItemOuterEdgeInsets = + const EdgeInsets.symmetric(horizontal: 16, vertical: 4), + pickerListItemBorderRadius = 8, + pickerListItemSelectedColor = + WidgetToolkitDesignSystem.light().colors.lightBlue, + pickerListItemUnselectedColor = + WidgetToolkitDesignSystem.light().colors.transparent, + pickerListItemTextStyle = + WidgetToolkitDesignSystem.light().typography.h3Reg14, + captionBold = WidgetToolkitDesignSystem.light().typography.captionBold, + textButtonTextStyle = + WidgetToolkitDesignSystem.light().typography.captionBold, + errorCardIconColor = WidgetToolkitDesignSystem.light().colors.black87, + errorCardBackgroundColor = + WidgetToolkitDesignSystem.light().colors.lightRed, + lightRed = WidgetToolkitDesignSystem.light().colors.lightRed, + blueLight = WidgetToolkitDesignSystem.light().colors.blueLight, + greenLight = WidgetToolkitDesignSystem.light().colors.greenLight, + errorCardTextColor = WidgetToolkitDesignSystem.light().colors.black87, + bottomSheetBarrierColor = + WidgetToolkitDesignSystem.light().colors.bottomSheetBarrierColor, + messagePanelBackgroundColor = + WidgetToolkitDesignSystem.light().colors.lightGray, + bottomSheetLineColor = WidgetToolkitDesignSystem.light().colors.gray, + bottomSheetBackgroundColor = + WidgetToolkitDesignSystem.light().colors.white, + bottomSheetBorderColor = + WidgetToolkitDesignSystem.light().colors.lightGray, + loadingIndicatorColor = + WidgetToolkitDesignSystem.light().colors.primaryColor, + descriptionBold = + WidgetToolkitDesignSystem.light().typography.descriptionBold, + titleBold = WidgetToolkitDesignSystem.light().typography.titleBold, + descriptionThin = + WidgetToolkitDesignSystem.light().typography.descriptionThin, + errorTitle = WidgetToolkitDesignSystem.light().typography.errorTitle, + disabledFilledButtonBackgroundColor = + WidgetToolkitDesignSystem.light().colors.gray, + filledButtonBackgroundColorDisabled = + WidgetToolkitDesignSystem.light().colors.lightGray, + filledButtonBackgroundColorPressed = + WidgetToolkitDesignSystem.light().colors.blueAccent, + filledButtonTextColorDisabled = + WidgetToolkitDesignSystem.light().colors.gray, + textButtonTextColorDisabled = + WidgetToolkitDesignSystem.light().colors.gray, + textButtonBackgroundColor = + WidgetToolkitDesignSystem.light().colors.transparent, + filledButtonTextColorEnabled = + WidgetToolkitDesignSystem.light().colors.activeButtonTextColor, + smallButtonBackgroundColor = + WidgetToolkitDesignSystem.light().colors.white, + buttonTextColor = WidgetToolkitDesignSystem.light().colors.black, + shimmerBaseColor = + WidgetToolkitDesignSystem.light().colors.shimmerBaseColor, + shimmerHighlightColor = + WidgetToolkitDesignSystem.light().colors.shimmerHighlightColor, + white = WidgetToolkitDesignSystem.light().colors.textColorWhite, + buttonBlueGradientEnd = + WidgetToolkitDesignSystem.light().colors.buttonBlueGradientEnd, + elevatedButtonBackgroundColor = + WidgetToolkitDesignSystem.light().colors.lightGray, + textColorWhite = + WidgetToolkitDesignSystem.light().colors.textColorWhite, + bodyTextColor2 = WidgetToolkitDesignSystem.light().colors.black, + smallButtonFilledBackgroundColor = + WidgetToolkitDesignSystem.light().colors.white, + smallButtonOutlinedBorderColor = + WidgetToolkitDesignSystem.light().colors.mediumWhite, + activeButtonLanguageTextColor = WidgetToolkitDesignSystem.light() + .colors + .activeButtonLanguageTextColor, + activeButtonTextColor = + WidgetToolkitDesignSystem.light().colors.black87, + disabledButtonTextColor = WidgetToolkitDesignSystem.light().colors.gray, + black = WidgetToolkitDesignSystem.light().colors.black, + activeGradientColorStart = + WidgetToolkitDesignSystem.light().colors.blue, + activeGradientColorEnd = + WidgetToolkitDesignSystem.light().colors.lightGray, + boxShadowColor = WidgetToolkitDesignSystem.light().colors.red, + red = WidgetToolkitDesignSystem.light().colors.red, + orange = WidgetToolkitDesignSystem.light().colors.orange, + orangeLight = WidgetToolkitDesignSystem.light().colors.orangeLight, + darkBlue = WidgetToolkitDesignSystem.light().colors.darkBlue, + darkGreen = WidgetToolkitDesignSystem.light().colors.darkGreen, + textButtonLoadingIndicatorColor = + WidgetToolkitDesignSystem.light().colors.redDark, + buttonShadowColor = WidgetToolkitDesignSystem.light().colors.white, + buttonPressedColor = WidgetToolkitDesignSystem.light().colors.blue, + buttonBorderColor = + WidgetToolkitDesignSystem.light().colors.mediumWhite, + outlineButtonContentPadding = + EdgeInsets.all(WidgetToolkitDesignSystem.light().spacings.m), + outlineButtonTextStyle = + WidgetToolkitDesignSystem.light().typography.descriptionBold, + outlineButtonDescriptionTextStyle = + WidgetToolkitDesignSystem.light().typography.descriptionBold, + outlineButtonBackgroundColor = + WidgetToolkitDesignSystem.light().colors.white, + outlineButtonForegroundColor = + WidgetToolkitDesignSystem.light().colors.buttonBlueGradientEnd, + outlineButtonBorderColor = + WidgetToolkitDesignSystem.light().colors.mediumWhite, + outlineButtonPressedColor = + WidgetToolkitDesignSystem.light().colors.buttonBlueGradientEnd, + outlineButtonTextColor = + WidgetToolkitDesignSystem.light().colors.primaryColor, + outlineButtonTextColorDisabled = + WidgetToolkitDesignSystem.light().colors.primaryColor, + bottomSheetHeaderPadding = const EdgeInsets.only(left: 24), + bottomSheetCloseButtonPadding = const EdgeInsets.only(top: 20), + bottomSheetContentPadding = const EdgeInsets.fromLTRB(20, 20, 20, 0), + messagePanelErrorEdgeInsets = const EdgeInsets.only(bottom: 20), + errorModalContentTitleInsets = const EdgeInsets.only(bottom: 8), + smallEdgeInsets = const EdgeInsets.all(12), + mediumEdgeInsets = const EdgeInsets.all(16), + largeEdgeInsets = const EdgeInsets.all(22), + messagePanelEdgeInsets = + const EdgeInsets.only(left: 20, top: 16, right: 16, bottom: 16), + spacingXS1 = WidgetToolkitDesignSystem.light().spacings.xs1, + spacingXS = WidgetToolkitDesignSystem.light().spacings.xs, + spacingXSS = WidgetToolkitDesignSystem.light().spacings.xss, + spacingS = WidgetToolkitDesignSystem.light().spacings.s, + spacingM = WidgetToolkitDesignSystem.light().spacings.m, + spacingL = WidgetToolkitDesignSystem.light().spacings.l, + spacingXL = WidgetToolkitDesignSystem.light().spacings.xl, + spacingXXL = WidgetToolkitDesignSystem.light().spacings.xxl, + spacingXXXXL1 = WidgetToolkitDesignSystem.light().spacings.xxxxl1, + textButtonIconRightPadding = + WidgetToolkitDesignSystem.light().spacings.s, + textButtonPadding = WidgetToolkitDesignSystem.light().spacings.xs, + appBarTextButtonPadding = + WidgetToolkitDesignSystem.light().spacings.xss, + bottomSheetBottomPadding = WidgetToolkitDesignSystem.light().spacings.l, + checkIcon = WidgetToolkitDesignSystem.dark().icons.checkIcon, + checkCircleIcon = + WidgetToolkitDesignSystem.dark().icons.checkCircleIcon, + closeIcon = WidgetToolkitDesignSystem.dark().icons.closeIcon, + dangerIcon = WidgetToolkitDesignSystem.dark().icons.dangerIcon, + educateIcon = WidgetToolkitDesignSystem.dark().icons.educateIcon, + greatNewsIcon = WidgetToolkitDesignSystem.dark().icons.greatNewsIcon, + infoCircleIcon = WidgetToolkitDesignSystem.dark().icons.infoCircleIcon, + messageIcon = WidgetToolkitDesignSystem.dark().icons.messageIcon; + + WidgetToolkitTheme.dark() + : primaryColor = WidgetToolkitDesignSystem.dark().colors.primaryColor, + backgroundColor = + WidgetToolkitDesignSystem.dark().colors.backgroundColor, + scaffoldBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.scaffoldBackgroundColor, + highlightColor = WidgetToolkitDesignSystem.dark().colors.highlightColor, + primaryGradientStart = WidgetToolkitDesignSystem.dark().colors.darkBlue, + primaryGradientEnd = WidgetToolkitDesignSystem.dark().colors.blue, + searchTextFieldIconColor = + WidgetToolkitDesignSystem.dark().colors.mediumWhite, + searchTextFieldIconColorActive = + WidgetToolkitDesignSystem.dark().colors.darkBlue, + searchTextFieldBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.darkGray, + searchTextFieldBackgroundColorActive = + WidgetToolkitDesignSystem.dark().colors.darkGray, + searchTextFieldBorderRadius = + WidgetToolkitDesignSystem.light().spacings.xs, + searchTextFieldBorderType = Border.all( + color: WidgetToolkitDesignSystem.light().colors.mediumWhite, + width: WidgetToolkitDesignSystem.light().spacings.xxxs, ), - WidgetToolkitDesignSystem.dark().typography.descriptionBold.copyWith( - color: WidgetToolkitDesignSystem.dark().colors.blue, + searchTextFieldIconEdgeInsets = EdgeInsets.symmetric( + horizontal: WidgetToolkitDesignSystem.light().spacings.m, + vertical: WidgetToolkitDesignSystem.light().spacings.s, ), - ]; - - static List pickerListItemInnerEdgeInsets = [ - const EdgeInsets.symmetric(horizontal: 20, vertical: 12), - const EdgeInsets.symmetric(horizontal: 20, vertical: 12), - ]; - - static List pickerListItemOuterEdgeInsets = [ - const EdgeInsets.symmetric(horizontal: 16, vertical: 4), - const EdgeInsets.symmetric(horizontal: 16, vertical: 4), - ]; - - static List pickerListItemBorderRadius = [8, 8]; - - static List pickerListItemSelectedColor = [ - WidgetToolkitDesignSystem.light().colors.lightBlue, - WidgetToolkitDesignSystem.dark().colors.darkBlue, - ]; - - static List pickerListItemUnselectedColor = [ - WidgetToolkitDesignSystem.light().colors.transparent, - WidgetToolkitDesignSystem.dark().colors.transparent, - ]; - - static List pickerListItemTextStyle = [ - WidgetToolkitDesignSystem.light().typography.h3Reg14, - WidgetToolkitDesignSystem.dark().typography.h3Reg14, - ]; - - static List captionBold = [ - WidgetToolkitDesignSystem.light().typography.captionBold, - WidgetToolkitDesignSystem.dark().typography.captionBold, - ]; - - static List textButtonTextStyle = captionBold; - - static List errorCardIconColor = [ - WidgetToolkitDesignSystem.light().colors.black87, - WidgetToolkitDesignSystem.dark().colors.mediumWhite, - ]; - - static List errorCardBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.lightRed, - WidgetToolkitDesignSystem.dark().colors.redDark, - ]; - - static List lightRed = [ - WidgetToolkitDesignSystem.light().colors.lightRed, - WidgetToolkitDesignSystem.dark().colors.lightRed, - ]; - - static List blueLight = [ - WidgetToolkitDesignSystem.light().colors.blueLight, - WidgetToolkitDesignSystem.dark().colors.blueLight, - ]; - - static List greenLight = [ - WidgetToolkitDesignSystem.light().colors.greenLight, - WidgetToolkitDesignSystem.dark().colors.greenLight, - ]; - static List errorCardTextColor = [ - WidgetToolkitDesignSystem.light().colors.black87, - WidgetToolkitDesignSystem.dark().colors.white, - ]; - - static List bottomSheetBarrierColor = [ - WidgetToolkitDesignSystem.light().colors.bottomSheetBarrierColor, - WidgetToolkitDesignSystem.dark().colors.bottomSheetBarrierColor, - ]; - static List messagePanelBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.lightGray, - WidgetToolkitDesignSystem.dark().colors.lightGray, - ]; - - static List bottomSheetLineColor = [ - WidgetToolkitDesignSystem.light().colors.gray, - WidgetToolkitDesignSystem.dark().colors.gray, - ]; - - static List bottomSheetBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.white, - WidgetToolkitDesignSystem.dark().colors.darkGray, - ]; - - static List bottomSheetBorderColor = [ - WidgetToolkitDesignSystem.light().colors.lightGray, - WidgetToolkitDesignSystem.dark().colors.lightGray, - ]; - - static List loadingIndicatorColor = [ - WidgetToolkitDesignSystem.light().colors.primaryColor, - WidgetToolkitDesignSystem.dark().colors.primaryColor, - ]; - - /// endregion - - /// region Common TextStyles - - static List descriptionBold = [ - WidgetToolkitDesignSystem.light().typography.descriptionBold, - WidgetToolkitDesignSystem.dark().typography.descriptionBold, - ]; - - static List titleBold = [ - WidgetToolkitDesignSystem.light().typography.titleBold, - WidgetToolkitDesignSystem.dark().typography.titleBold, - ]; - - static List descriptionThin = [ - WidgetToolkitDesignSystem.light().typography.descriptionThin, - WidgetToolkitDesignSystem.dark().typography.descriptionThin, - ]; - - static List errorTitle = [ - WidgetToolkitDesignSystem.light().typography.errorTitle, - WidgetToolkitDesignSystem.dark().typography.errorTitle, - ]; - - /// endregion - - /// region Buttons - - static List disabledFilledButtonBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.gray, - WidgetToolkitDesignSystem.dark().colors.gray, - ]; - - static List filledButtonBackgroundColorDisabled = [ - WidgetToolkitDesignSystem.light().colors.lightGray, - WidgetToolkitDesignSystem.dark().colors.lightGray, - ]; - - static List filledButtonBackgroundColorPressed = [ - WidgetToolkitDesignSystem.light().colors.blueAccent, - WidgetToolkitDesignSystem.dark().colors.blueAccent, - ]; - - static List filledButtonTextColorDisabled = [ - WidgetToolkitDesignSystem.light().colors.gray, - WidgetToolkitDesignSystem.dark().colors.gray, - ]; - - static List textButtonTextColorDisabled = - filledButtonTextColorDisabled; - - static List textButtonBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.transparent, - WidgetToolkitDesignSystem.dark().colors.transparent, - ]; - - static List filledButtonTextColorEnabled = [ - WidgetToolkitDesignSystem.light().colors.activeButtonTextColor, - WidgetToolkitDesignSystem.dark().colors.activeButtonTextColor, - ]; - - static List smallButtonBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.white, - WidgetToolkitDesignSystem.dark().colors.darkGray, - ]; - - static List buttonTextColor = [ - WidgetToolkitDesignSystem.light().colors.black, - WidgetToolkitDesignSystem.dark().colors.white, - ]; - - static List shimmerBaseColor = [ - WidgetToolkitDesignSystem.light().colors.shimmerBaseColor, - WidgetToolkitDesignSystem.dark().colors.shimmerBaseColor, - ]; - - static List shimmerHighlightColor = [ - WidgetToolkitDesignSystem.light().colors.shimmerHighlightColor, - WidgetToolkitDesignSystem.dark().colors.shimmerHighlightColor, - ]; - - static List white = [ - WidgetToolkitDesignSystem.light().colors.textColorWhite, - WidgetToolkitDesignSystem.dark().colors.textColorWhite, - ]; - static List buttonBlueGradientEnd = [ - WidgetToolkitDesignSystem.light().colors.buttonBlueGradientEnd, - WidgetToolkitDesignSystem.dark().colors.buttonBlueGradientEnd, - ]; - static List elevatedButtonBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.lightGray, - WidgetToolkitDesignSystem.dark().colors.lightGray, - ]; - - static List textColorWhite = [ - WidgetToolkitDesignSystem.light().colors.textColorWhite, - WidgetToolkitDesignSystem.dark().colors.textColorWhite, - ]; - - static List bodyTextColor2 = [ - WidgetToolkitDesignSystem.light().colors.black, - WidgetToolkitDesignSystem.dark().colors.activeButtonTextColor, - ]; - - static List smallButtonFilledBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.white, - WidgetToolkitDesignSystem.dark().colors.mediumWhite, - ]; - - static List smallButtonOutlinedBorderColor = [ - WidgetToolkitDesignSystem.light().colors.mediumWhite, - WidgetToolkitDesignSystem.dark().colors.mediumWhite, - ]; - - static List activeButtonLanguageTextColor = [ - WidgetToolkitDesignSystem.light().colors.activeButtonLanguageTextColor, - WidgetToolkitDesignSystem.dark().colors.activeButtonLanguageTextColor, - ]; - - static List activeButtonTextColor = [ - WidgetToolkitDesignSystem.light().colors.black87, - WidgetToolkitDesignSystem.dark().colors.white, - ]; - - static List disabledButtonTextColor = [ - WidgetToolkitDesignSystem.light().colors.gray, - WidgetToolkitDesignSystem.dark().colors.gray, - ]; - - static List black = [ - WidgetToolkitDesignSystem.light().colors.black, - WidgetToolkitDesignSystem.dark().colors.white, - ]; - - static List activeGradientColorStart = [ - WidgetToolkitDesignSystem.light().colors.blue, - WidgetToolkitDesignSystem.dark().colors.blue, - ]; - - static List activeGradientColorEnd = [ - WidgetToolkitDesignSystem.light().colors.lightGray, - WidgetToolkitDesignSystem.dark().colors.lightGray, - ]; - - static List boxShadowColor = [ - WidgetToolkitDesignSystem.light().colors.red, - WidgetToolkitDesignSystem.dark().colors.red, - ]; - - static List red = [ - WidgetToolkitDesignSystem.light().colors.red, - WidgetToolkitDesignSystem.dark().colors.red, - ]; - static List orange = [ - WidgetToolkitDesignSystem.light().colors.orange, - WidgetToolkitDesignSystem.dark().colors.orange, - ]; - - static List orangeLight = [ - WidgetToolkitDesignSystem.light().colors.orangeLight, - WidgetToolkitDesignSystem.dark().colors.orangeLight, - ]; - - static List darkBlue = [ - WidgetToolkitDesignSystem.light().colors.darkBlue, - WidgetToolkitDesignSystem.dark().colors.darkBlue, - ]; - - static List darkGreen = [ - WidgetToolkitDesignSystem.light().colors.darkGreen, - WidgetToolkitDesignSystem.dark().colors.darkGreen, - ]; - - static List textButtonLoadingIndicatorColor = [ - WidgetToolkitDesignSystem.light().colors.redDark, - WidgetToolkitDesignSystem.dark().colors.redDark, - ]; - - static List buttonShadowColor = [ - WidgetToolkitDesignSystem.light().colors.white, - WidgetToolkitDesignSystem.dark().colors.white, - ]; - - static List buttonPressedColor = [ - WidgetToolkitDesignSystem.light().colors.blue, - WidgetToolkitDesignSystem.dark().colors.blue, - ]; - - static List buttonBorderColor = [ - WidgetToolkitDesignSystem.light().colors.mediumWhite, - WidgetToolkitDesignSystem.dark().colors.mediumWhite, - ]; - - static List outlineButtonContentPadding = [ - EdgeInsets.all(WidgetToolkitDesignSystem.light().spacings.m), - EdgeInsets.all(WidgetToolkitDesignSystem.dark().spacings.m), - ]; - - static List outlineButtonTextStyle = [ - WidgetToolkitDesignSystem.light().typography.descriptionBold, - WidgetToolkitDesignSystem.light().typography.descriptionBold - ]; - - static List outlineButtonDescriptionTextStyle = [ - WidgetToolkitDesignSystem.light().typography.descriptionBold, - WidgetToolkitDesignSystem.light().typography.descriptionBold - ]; - - static List outlineButtonBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.white, - WidgetToolkitDesignSystem.light().colors.white - ]; - - static List outlineButtonForegroundColor = [ - WidgetToolkitDesignSystem.light().colors.buttonBlueGradientEnd, - WidgetToolkitDesignSystem.light().colors.buttonBlueGradientEnd - ]; - - static List outlineButtonBorderColor = [ - WidgetToolkitDesignSystem.light().colors.mediumWhite, - WidgetToolkitDesignSystem.light().colors.mediumWhite - ]; - - static List outlineButtonPressedColor = [ - WidgetToolkitDesignSystem.light().colors.buttonBlueGradientEnd, - WidgetToolkitDesignSystem.light().colors.buttonBlueGradientEnd - ]; - - static List outlineButtonTextColor = [ - WidgetToolkitDesignSystem.light().colors.primaryColor, - WidgetToolkitDesignSystem.light().colors.primaryColor - ]; - - static List outlineButtonTextColorDisabled = [ - WidgetToolkitDesignSystem.light().colors.primaryColor, - WidgetToolkitDesignSystem.light().colors.primaryColor - ]; - - /// endregion - - /// region Common Spacings - - static List bottomSheetHeaderPadding = [ - const EdgeInsets.only(left: 24), - const EdgeInsets.only(left: 24), - ]; - - static List bottomSheetCloseButtonPadding = [ - const EdgeInsets.only(top: 20), - const EdgeInsets.only(top: 20) - ]; - - static List bottomSheetContentPadding = [ - const EdgeInsets.fromLTRB(20, 20, 20, 0), - const EdgeInsets.fromLTRB(20, 20, 20, 0) - ]; - - static List messagePanelErrorEdgeInsets = [ - const EdgeInsets.only(bottom: 20), - const EdgeInsets.only(bottom: 20), - ]; - - static List errorModalContentTitleInsets = [ - const EdgeInsets.only(bottom: 8), - const EdgeInsets.only(bottom: 8), - ]; - - static List smallEdgeInsets = [ - const EdgeInsets.all(12), - const EdgeInsets.all(12), - ]; - - static List mediumEdgeInsets = [ - const EdgeInsets.all(16), - const EdgeInsets.all(16), - ]; - - static List largeEdgeInsets = [ - const EdgeInsets.all(22), - const EdgeInsets.all(22), - ]; - - static List messagePanelEdgeInsets = [ - const EdgeInsets.only(left: 20, top: 16, right: 16, bottom: 16), - const EdgeInsets.only(left: 20, top: 16, right: 16, bottom: 16), - ]; - - static List spacingXS1 = [ - WidgetToolkitDesignSystem.light().spacings.xs1, - WidgetToolkitDesignSystem.dark().spacings.xs1, - ]; - - static List spacingXS = [ - WidgetToolkitDesignSystem.light().spacings.xs, - WidgetToolkitDesignSystem.dark().spacings.xs, - ]; - - static List spacingXSS = [ - WidgetToolkitDesignSystem.light().spacings.xss, - WidgetToolkitDesignSystem.dark().spacings.xss, - ]; - - static List spacingS = [ - WidgetToolkitDesignSystem.light().spacings.s, - WidgetToolkitDesignSystem.dark().spacings.s, - ]; - - static List spacingM = [ - WidgetToolkitDesignSystem.light().spacings.m, - WidgetToolkitDesignSystem.dark().spacings.m, - ]; - - static List spacingL = [ - WidgetToolkitDesignSystem.light().spacings.l, - WidgetToolkitDesignSystem.dark().spacings.l, - ]; - - static List spacingXL = [ - WidgetToolkitDesignSystem.light().spacings.xl, - WidgetToolkitDesignSystem.dark().spacings.xl, - ]; - - static List spacingXXL = [ - WidgetToolkitDesignSystem.light().spacings.xxl, - WidgetToolkitDesignSystem.dark().spacings.xxl, - ]; - - static List spacingXXXXL1 = [ - WidgetToolkitDesignSystem.light().spacings.xxxxl1, - WidgetToolkitDesignSystem.dark().spacings.xxxxl1, - ]; - - static List textButtonIconRightPadding = spacingS; - - static List textButtonPadding = spacingXS; - - static List appBarTextButtonPadding = spacingXSS; - - static List bottomSheetBottomPadding = spacingL; + searchTextFieldHintStyle = + WidgetToolkitDesignSystem.dark().typography.h3Reg14.copyWith( + color: WidgetToolkitDesignSystem.dark().colors.gray, + ), + searchTextFieldTextStyle = WidgetToolkitDesignSystem.dark() + .typography + .descriptionBold + .copyWith( + color: WidgetToolkitDesignSystem.dark().colors.blue, + ), + pickerListItemInnerEdgeInsets = + const EdgeInsets.symmetric(horizontal: 20, vertical: 12), + pickerListItemOuterEdgeInsets = + const EdgeInsets.symmetric(horizontal: 16, vertical: 4), + pickerListItemBorderRadius = 8, + pickerListItemSelectedColor = + WidgetToolkitDesignSystem.dark().colors.darkBlue, + pickerListItemUnselectedColor = + WidgetToolkitDesignSystem.dark().colors.transparent, + pickerListItemTextStyle = + WidgetToolkitDesignSystem.dark().typography.h3Reg14, + captionBold = WidgetToolkitDesignSystem.dark().typography.captionBold, + textButtonTextStyle = + WidgetToolkitDesignSystem.dark().typography.captionBold, + errorCardIconColor = + WidgetToolkitDesignSystem.dark().colors.mediumWhite, + errorCardBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.redDark, + lightRed = WidgetToolkitDesignSystem.dark().colors.lightRed, + blueLight = WidgetToolkitDesignSystem.dark().colors.blueLight, + greenLight = WidgetToolkitDesignSystem.dark().colors.greenLight, + errorCardTextColor = WidgetToolkitDesignSystem.dark().colors.white, + bottomSheetBarrierColor = + WidgetToolkitDesignSystem.dark().colors.bottomSheetBarrierColor, + messagePanelBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.lightGray, + bottomSheetLineColor = WidgetToolkitDesignSystem.dark().colors.gray, + bottomSheetBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.darkGray, + bottomSheetBorderColor = + WidgetToolkitDesignSystem.dark().colors.lightGray, + loadingIndicatorColor = + WidgetToolkitDesignSystem.dark().colors.primaryColor, + descriptionBold = + WidgetToolkitDesignSystem.dark().typography.descriptionBold, + titleBold = WidgetToolkitDesignSystem.dark().typography.titleBold, + descriptionThin = + WidgetToolkitDesignSystem.dark().typography.descriptionThin, + errorTitle = WidgetToolkitDesignSystem.dark().typography.errorTitle, + disabledFilledButtonBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.gray, + filledButtonBackgroundColorDisabled = + WidgetToolkitDesignSystem.dark().colors.lightGray, + filledButtonBackgroundColorPressed = + WidgetToolkitDesignSystem.dark().colors.blueAccent, + filledButtonTextColorDisabled = + WidgetToolkitDesignSystem.dark().colors.gray, + textButtonTextColorDisabled = + WidgetToolkitDesignSystem.dark().colors.gray, + textButtonBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.transparent, + filledButtonTextColorEnabled = + WidgetToolkitDesignSystem.dark().colors.activeButtonTextColor, + smallButtonBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.darkGray, + buttonTextColor = WidgetToolkitDesignSystem.dark().colors.white, + shimmerBaseColor = + WidgetToolkitDesignSystem.dark().colors.shimmerBaseColor, + shimmerHighlightColor = + WidgetToolkitDesignSystem.dark().colors.shimmerHighlightColor, + white = WidgetToolkitDesignSystem.dark().colors.textColorWhite, + buttonBlueGradientEnd = + WidgetToolkitDesignSystem.dark().colors.buttonBlueGradientEnd, + elevatedButtonBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.lightGray, + textColorWhite = WidgetToolkitDesignSystem.dark().colors.textColorWhite, + bodyTextColor2 = + WidgetToolkitDesignSystem.dark().colors.activeButtonTextColor, + smallButtonFilledBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.mediumWhite, + smallButtonOutlinedBorderColor = + WidgetToolkitDesignSystem.dark().colors.mediumWhite, + activeButtonLanguageTextColor = WidgetToolkitDesignSystem.dark() + .colors + .activeButtonLanguageTextColor, + activeButtonTextColor = WidgetToolkitDesignSystem.dark().colors.white, + disabledButtonTextColor = WidgetToolkitDesignSystem.dark().colors.gray, + black = WidgetToolkitDesignSystem.dark().colors.white, + activeGradientColorStart = WidgetToolkitDesignSystem.dark().colors.blue, + activeGradientColorEnd = + WidgetToolkitDesignSystem.dark().colors.lightGray, + boxShadowColor = WidgetToolkitDesignSystem.dark().colors.red, + red = WidgetToolkitDesignSystem.dark().colors.red, + orange = WidgetToolkitDesignSystem.dark().colors.orange, + orangeLight = WidgetToolkitDesignSystem.dark().colors.orangeLight, + darkBlue = WidgetToolkitDesignSystem.dark().colors.darkBlue, + darkGreen = WidgetToolkitDesignSystem.dark().colors.darkGreen, + textButtonLoadingIndicatorColor = + WidgetToolkitDesignSystem.dark().colors.redDark, + buttonShadowColor = WidgetToolkitDesignSystem.dark().colors.white, + buttonPressedColor = WidgetToolkitDesignSystem.dark().colors.blue, + buttonBorderColor = WidgetToolkitDesignSystem.dark().colors.mediumWhite, + outlineButtonContentPadding = + EdgeInsets.all(WidgetToolkitDesignSystem.dark().spacings.m), + outlineButtonTextStyle = + WidgetToolkitDesignSystem.light().typography.descriptionBold, + outlineButtonDescriptionTextStyle = + WidgetToolkitDesignSystem.light().typography.descriptionBold, + outlineButtonBackgroundColor = + WidgetToolkitDesignSystem.light().colors.white, + outlineButtonForegroundColor = + WidgetToolkitDesignSystem.light().colors.buttonBlueGradientEnd, + outlineButtonBorderColor = + WidgetToolkitDesignSystem.light().colors.mediumWhite, + outlineButtonPressedColor = + WidgetToolkitDesignSystem.light().colors.buttonBlueGradientEnd, + outlineButtonTextColor = + WidgetToolkitDesignSystem.light().colors.primaryColor, + outlineButtonTextColorDisabled = + WidgetToolkitDesignSystem.light().colors.primaryColor, + bottomSheetHeaderPadding = const EdgeInsets.only(left: 24), + bottomSheetCloseButtonPadding = const EdgeInsets.only(top: 20), + bottomSheetContentPadding = const EdgeInsets.fromLTRB(20, 20, 20, 0), + messagePanelErrorEdgeInsets = const EdgeInsets.only(bottom: 20), + errorModalContentTitleInsets = const EdgeInsets.only(bottom: 8), + smallEdgeInsets = const EdgeInsets.all(12), + mediumEdgeInsets = const EdgeInsets.all(16), + largeEdgeInsets = const EdgeInsets.all(22), + messagePanelEdgeInsets = + const EdgeInsets.only(left: 20, top: 16, right: 16, bottom: 16), + spacingXS1 = WidgetToolkitDesignSystem.dark().spacings.xs1, + spacingXS = WidgetToolkitDesignSystem.dark().spacings.xs, + spacingXSS = WidgetToolkitDesignSystem.dark().spacings.xss, + spacingS = WidgetToolkitDesignSystem.dark().spacings.s, + spacingM = WidgetToolkitDesignSystem.dark().spacings.m, + spacingL = WidgetToolkitDesignSystem.dark().spacings.l, + spacingXL = WidgetToolkitDesignSystem.dark().spacings.xl, + spacingXXL = WidgetToolkitDesignSystem.dark().spacings.xxl, + spacingXXXXL1 = WidgetToolkitDesignSystem.dark().spacings.xxxxl1, + textButtonIconRightPadding = + WidgetToolkitDesignSystem.dark().spacings.s, + textButtonPadding = WidgetToolkitDesignSystem.dark().spacings.xs, + appBarTextButtonPadding = WidgetToolkitDesignSystem.dark().spacings.xss, + bottomSheetBottomPadding = WidgetToolkitDesignSystem.dark().spacings.l, + checkIcon = WidgetToolkitDesignSystem.light().icons.checkIcon, + checkCircleIcon = + WidgetToolkitDesignSystem.light().icons.checkCircleIcon, + closeIcon = WidgetToolkitDesignSystem.light().icons.closeIcon, + dangerIcon = WidgetToolkitDesignSystem.light().icons.dangerIcon, + educateIcon = WidgetToolkitDesignSystem.light().icons.educateIcon, + greatNewsIcon = WidgetToolkitDesignSystem.light().icons.greatNewsIcon, + infoCircleIcon = WidgetToolkitDesignSystem.light().icons.infoCircleIcon, + messageIcon = WidgetToolkitDesignSystem.light().icons.messageIcon; /// endregion - /// region Common Icons - static List checkIcon = [ - WidgetToolkitDesignSystem.dark().icons.checkIcon, - WidgetToolkitDesignSystem.light().icons.checkIcon, - ]; - - static List checkCircleIcon = [ - WidgetToolkitDesignSystem.dark().icons.checkCircleIcon, - WidgetToolkitDesignSystem.light().icons.checkCircleIcon, - ]; - - static List closeIcon = [ - WidgetToolkitDesignSystem.dark().icons.closeIcon, - WidgetToolkitDesignSystem.light().icons.closeIcon, - ]; - - static List dangerIcon = [ - WidgetToolkitDesignSystem.dark().icons.dangerIcon, - WidgetToolkitDesignSystem.light().icons.dangerIcon, - ]; - - static List educateIcon = [ - WidgetToolkitDesignSystem.dark().icons.educateIcon, - WidgetToolkitDesignSystem.light().icons.educateIcon, - ]; - - static List greatNewsIcon = [ - WidgetToolkitDesignSystem.dark().icons.greatNewsIcon, - WidgetToolkitDesignSystem.light().icons.greatNewsIcon, - ]; - - static List infoCircleIcon = [ - WidgetToolkitDesignSystem.dark().icons.infoCircleIcon, - WidgetToolkitDesignSystem.light().icons.infoCircleIcon, - ]; - - static List messageIcon = [ - WidgetToolkitDesignSystem.dark().icons.messageIcon, - WidgetToolkitDesignSystem.light().icons.messageIcon, - ]; - - /// endregion + @override + final Color primaryColor; + @override + final Color backgroundColor; + @override + final Color scaffoldBackgroundColor; + @override + final Color highlightColor; + @override + final Color primaryGradientStart; + @override + final Color primaryGradientEnd; + @override + final Color searchTextFieldIconColor; + @override + final Color searchTextFieldIconColorActive; + @override + final Color searchTextFieldBackgroundColor; + @override + final Color searchTextFieldBackgroundColorActive; + @override + final double searchTextFieldBorderRadius; + @override + final BoxBorder searchTextFieldBorderType; + @override + final EdgeInsets searchTextFieldIconEdgeInsets; + @override + final TextStyle searchTextFieldHintStyle; + @override + final TextStyle searchTextFieldTextStyle; + @override + final EdgeInsets pickerListItemInnerEdgeInsets; + @override + final EdgeInsets pickerListItemOuterEdgeInsets; + @override + final double pickerListItemBorderRadius; + @override + final Color pickerListItemSelectedColor; + @override + final Color pickerListItemUnselectedColor; + @override + final TextStyle pickerListItemTextStyle; + @override + final TextStyle captionBold; + @override + final TextStyle textButtonTextStyle; + @override + final Color errorCardIconColor; + @override + final Color errorCardBackgroundColor; + @override + final Color lightRed; + @override + final Color blueLight; + @override + final Color greenLight; + @override + final Color errorCardTextColor; + @override + final Color bottomSheetBarrierColor; + @override + final Color messagePanelBackgroundColor; + @override + final Color bottomSheetLineColor; + @override + final Color bottomSheetBackgroundColor; + @override + final Color bottomSheetBorderColor; + @override + final Color loadingIndicatorColor; + @override + final TextStyle descriptionBold; + @override + final TextStyle titleBold; + @override + final TextStyle descriptionThin; + @override + final TextStyle errorTitle; + @override + final Color disabledFilledButtonBackgroundColor; + @override + final Color filledButtonBackgroundColorDisabled; + @override + final Color filledButtonBackgroundColorPressed; + @override + final Color filledButtonTextColorDisabled; + @override + final Color textButtonTextColorDisabled; + @override + final Color textButtonBackgroundColor; + @override + final Color filledButtonTextColorEnabled; + @override + final Color smallButtonBackgroundColor; + @override + final Color buttonTextColor; + @override + final Color shimmerBaseColor; + @override + final Color shimmerHighlightColor; + @override + final Color white; + @override + final Color buttonBlueGradientEnd; + @override + final Color elevatedButtonBackgroundColor; + @override + final Color textColorWhite; + @override + final Color bodyTextColor2; + @override + final Color smallButtonFilledBackgroundColor; + @override + final Color smallButtonOutlinedBorderColor; + @override + final Color activeButtonLanguageTextColor; + @override + final Color activeButtonTextColor; + @override + final Color disabledButtonTextColor; + @override + final Color black; + @override + final Color activeGradientColorStart; + @override + final Color activeGradientColorEnd; + @override + final Color boxShadowColor; + @override + final Color red; + @override + final Color orange; + @override + final Color orangeLight; + @override + final Color darkBlue; + @override + final Color darkGreen; + @override + final Color textButtonLoadingIndicatorColor; + @override + final Color buttonShadowColor; + @override + final Color buttonPressedColor; + @override + final Color buttonBorderColor; + @override + final EdgeInsets outlineButtonContentPadding; + @override + final TextStyle outlineButtonTextStyle; + @override + final TextStyle outlineButtonDescriptionTextStyle; + @override + final Color outlineButtonBackgroundColor; + @override + final Color outlineButtonForegroundColor; + @override + final Color outlineButtonBorderColor; + @override + final Color outlineButtonPressedColor; + @override + final Color outlineButtonTextColor; + @override + final Color outlineButtonTextColorDisabled; + @override + final EdgeInsets bottomSheetHeaderPadding; + @override + final EdgeInsets bottomSheetCloseButtonPadding; + @override + final EdgeInsets bottomSheetContentPadding; + @override + final EdgeInsets messagePanelErrorEdgeInsets; + @override + final EdgeInsets errorModalContentTitleInsets; + @override + final EdgeInsets smallEdgeInsets; + @override + final EdgeInsets mediumEdgeInsets; + @override + final EdgeInsets largeEdgeInsets; + @override + final EdgeInsets messagePanelEdgeInsets; + @override + final double spacingXS1; + @override + final double spacingXS; + @override + final double spacingXSS; + @override + final double spacingS; + @override + final double spacingM; + @override + final double spacingL; + @override + final double spacingXL; + @override + final double spacingXXL; + @override + final double spacingXXXXL1; + @override + final double textButtonIconRightPadding; + @override + final double textButtonPadding; + @override + final double appBarTextButtonPadding; + @override + final double bottomSheetBottomPadding; + @override + final SvgFile checkIcon; + @override + final SvgFile checkCircleIcon; + @override + final SvgFile closeIcon; + @override + final SvgFile dangerIcon; + @override + final SvgFile educateIcon; + @override + final SvgFile greatNewsIcon; + @override + final SvgFile infoCircleIcon; + @override + final SvgFile messageIcon; } extension ThemeContextExtension on BuildContext { diff --git a/packages/widget_toolkit/lib/src/base/theme/widget_toolkit_theme.tailor.dart b/packages/widget_toolkit/lib/src/base/theme/widget_toolkit_theme.tailor.dart index aec17c79..b1e8365d 100644 --- a/packages/widget_toolkit/lib/src/base/theme/widget_toolkit_theme.tailor.dart +++ b/packages/widget_toolkit/lib/src/base/theme/widget_toolkit_theme.tailor.dart @@ -8,737 +8,301 @@ part of 'widget_toolkit_theme.dart'; // TailorAnnotationsGenerator // ************************************************************************** -class WidgetToolkitTheme extends ThemeExtension { - const WidgetToolkitTheme({ - required this.activeButtonLanguageTextColor, - required this.activeButtonTextColor, - required this.activeGradientColorEnd, - required this.activeGradientColorStart, - required this.appBarTextButtonPadding, - required this.backgroundColor, - required this.black, - required this.blueLight, - required this.bodyTextColor2, - required this.bottomSheetBackgroundColor, - required this.bottomSheetBarrierColor, - required this.bottomSheetBorderColor, - required this.bottomSheetBottomPadding, - required this.bottomSheetCloseButtonPadding, - required this.bottomSheetContentPadding, - required this.bottomSheetHeaderPadding, - required this.bottomSheetLineColor, - required this.boxShadowColor, - required this.buttonBlueGradientEnd, - required this.buttonBorderColor, - required this.buttonPressedColor, - required this.buttonShadowColor, - required this.buttonTextColor, - required this.captionBold, - required this.checkCircleIcon, - required this.checkIcon, - required this.closeIcon, - required this.dangerIcon, - required this.darkBlue, - required this.darkGreen, - required this.descriptionBold, - required this.descriptionThin, - required this.disabledButtonTextColor, - required this.disabledFilledButtonBackgroundColor, - required this.educateIcon, - required this.elevatedButtonBackgroundColor, - required this.errorCardBackgroundColor, - required this.errorCardIconColor, - required this.errorCardTextColor, - required this.errorModalContentTitleInsets, - required this.errorTitle, - required this.filledButtonBackgroundColorDisabled, - required this.filledButtonBackgroundColorPressed, - required this.filledButtonTextColorDisabled, - required this.filledButtonTextColorEnabled, - required this.greatNewsIcon, - required this.greenLight, - required this.highlightColor, - required this.infoCircleIcon, - required this.largeEdgeInsets, - required this.lightRed, - required this.loadingIndicatorColor, - required this.mediumEdgeInsets, - required this.messageIcon, - required this.messagePanelBackgroundColor, - required this.messagePanelEdgeInsets, - required this.messagePanelErrorEdgeInsets, - required this.orange, - required this.orangeLight, - required this.outlineButtonBackgroundColor, - required this.outlineButtonBorderColor, - required this.outlineButtonContentPadding, - required this.outlineButtonDescriptionTextStyle, - required this.outlineButtonForegroundColor, - required this.outlineButtonPressedColor, - required this.outlineButtonTextColor, - required this.outlineButtonTextColorDisabled, - required this.outlineButtonTextStyle, - required this.pickerListItemBorderRadius, - required this.pickerListItemInnerEdgeInsets, - required this.pickerListItemOuterEdgeInsets, - required this.pickerListItemSelectedColor, - required this.pickerListItemTextStyle, - required this.pickerListItemUnselectedColor, - required this.primaryColor, - required this.primaryGradientEnd, - required this.primaryGradientStart, - required this.red, - required this.scaffoldBackgroundColor, - required this.searchTextFieldBackgroundColor, - required this.searchTextFieldBackgroundColorActive, - required this.searchTextFieldBorderRadius, - required this.searchTextFieldBorderType, - required this.searchTextFieldHintStyle, - required this.searchTextFieldIconColor, - required this.searchTextFieldIconColorActive, - required this.searchTextFieldIconEdgeInsets, - required this.searchTextFieldTextStyle, - required this.shimmerBaseColor, - required this.shimmerHighlightColor, - required this.smallButtonBackgroundColor, - required this.smallButtonFilledBackgroundColor, - required this.smallButtonOutlinedBorderColor, - required this.smallEdgeInsets, - required this.spacingL, - required this.spacingM, - required this.spacingS, - required this.spacingXL, - required this.spacingXS, - required this.spacingXS1, - required this.spacingXSS, - required this.spacingXXL, - required this.spacingXXXXL1, - required this.textButtonBackgroundColor, - required this.textButtonIconRightPadding, - required this.textButtonLoadingIndicatorColor, - required this.textButtonPadding, - required this.textButtonTextColorDisabled, - required this.textButtonTextStyle, - required this.textColorWhite, - required this.titleBold, - required this.white, - }); - - final Color activeButtonLanguageTextColor; - final Color activeButtonTextColor; - final Color activeGradientColorEnd; - final Color activeGradientColorStart; - final double appBarTextButtonPadding; - final Color backgroundColor; - final Color black; - final Color blueLight; - final Color bodyTextColor2; - final Color bottomSheetBackgroundColor; - final Color bottomSheetBarrierColor; - final Color bottomSheetBorderColor; - final double bottomSheetBottomPadding; - final EdgeInsets bottomSheetCloseButtonPadding; - final EdgeInsets bottomSheetContentPadding; - - /// endregion - /// region Common Spacings - final EdgeInsets bottomSheetHeaderPadding; - final Color bottomSheetLineColor; - final Color boxShadowColor; - final Color buttonBlueGradientEnd; - final Color buttonBorderColor; - final Color buttonPressedColor; - final Color buttonShadowColor; - final Color buttonTextColor; - final TextStyle captionBold; - final SvgFile checkCircleIcon; - - /// endregion - /// region Common Icons - final SvgFile checkIcon; - final SvgFile closeIcon; - final SvgFile dangerIcon; - final Color darkBlue; - final Color darkGreen; - - /// endregion - /// region Common TextStyles - final TextStyle descriptionBold; - final TextStyle descriptionThin; - final Color disabledButtonTextColor; - - /// endregion - /// region Buttons - final Color disabledFilledButtonBackgroundColor; - final SvgFile educateIcon; - final Color elevatedButtonBackgroundColor; - final Color errorCardBackgroundColor; - final Color errorCardIconColor; - final Color errorCardTextColor; - final EdgeInsets errorModalContentTitleInsets; - final TextStyle errorTitle; - final Color filledButtonBackgroundColorDisabled; - final Color filledButtonBackgroundColorPressed; - final Color filledButtonTextColorDisabled; - final Color filledButtonTextColorEnabled; - final SvgFile greatNewsIcon; - final Color greenLight; - final Color highlightColor; - final SvgFile infoCircleIcon; - final EdgeInsets largeEdgeInsets; - final Color lightRed; - final Color loadingIndicatorColor; - final EdgeInsets mediumEdgeInsets; - final SvgFile messageIcon; - final Color messagePanelBackgroundColor; - final EdgeInsets messagePanelEdgeInsets; - final EdgeInsets messagePanelErrorEdgeInsets; - final Color orange; - final Color orangeLight; - final Color outlineButtonBackgroundColor; - final Color outlineButtonBorderColor; - final EdgeInsets outlineButtonContentPadding; - final TextStyle outlineButtonDescriptionTextStyle; - final Color outlineButtonForegroundColor; - final Color outlineButtonPressedColor; - final Color outlineButtonTextColor; - final Color outlineButtonTextColorDisabled; - final TextStyle outlineButtonTextStyle; - final double pickerListItemBorderRadius; - final EdgeInsets pickerListItemInnerEdgeInsets; - final EdgeInsets pickerListItemOuterEdgeInsets; - final Color pickerListItemSelectedColor; - final TextStyle pickerListItemTextStyle; - final Color pickerListItemUnselectedColor; - - /// region Primary - final Color primaryColor; - final Color primaryGradientEnd; - final Color primaryGradientStart; - final Color red; - final Color scaffoldBackgroundColor; - final Color searchTextFieldBackgroundColor; - final Color searchTextFieldBackgroundColorActive; - final double searchTextFieldBorderRadius; - final BoxBorder searchTextFieldBorderType; - final TextStyle searchTextFieldHintStyle; - - /// endregion - /// region Common widgets - final Color searchTextFieldIconColor; - final Color searchTextFieldIconColorActive; - final EdgeInsets searchTextFieldIconEdgeInsets; - final TextStyle searchTextFieldTextStyle; - final Color shimmerBaseColor; - final Color shimmerHighlightColor; - final Color smallButtonBackgroundColor; - final Color smallButtonFilledBackgroundColor; - final Color smallButtonOutlinedBorderColor; - final EdgeInsets smallEdgeInsets; - final double spacingL; - final double spacingM; - final double spacingS; - final double spacingXL; - final double spacingXS; - final double spacingXS1; - final double spacingXSS; - final double spacingXXL; - final double spacingXXXXL1; - final Color textButtonBackgroundColor; - final double textButtonIconRightPadding; - final Color textButtonLoadingIndicatorColor; - final double textButtonPadding; - final Color textButtonTextColorDisabled; - final TextStyle textButtonTextStyle; - final Color textColorWhite; - final TextStyle titleBold; - final Color white; - - static final WidgetToolkitTheme light = WidgetToolkitTheme( - activeButtonLanguageTextColor: - _$WidgetToolkitTheme.activeButtonLanguageTextColor[0], - activeButtonTextColor: _$WidgetToolkitTheme.activeButtonTextColor[0], - activeGradientColorEnd: _$WidgetToolkitTheme.activeGradientColorEnd[0], - activeGradientColorStart: _$WidgetToolkitTheme.activeGradientColorStart[0], - appBarTextButtonPadding: _$WidgetToolkitTheme.appBarTextButtonPadding[0], - backgroundColor: _$WidgetToolkitTheme.backgroundColor[0], - black: _$WidgetToolkitTheme.black[0], - blueLight: _$WidgetToolkitTheme.blueLight[0], - bodyTextColor2: _$WidgetToolkitTheme.bodyTextColor2[0], - bottomSheetBackgroundColor: - _$WidgetToolkitTheme.bottomSheetBackgroundColor[0], - bottomSheetBarrierColor: _$WidgetToolkitTheme.bottomSheetBarrierColor[0], - bottomSheetBorderColor: _$WidgetToolkitTheme.bottomSheetBorderColor[0], - bottomSheetBottomPadding: _$WidgetToolkitTheme.bottomSheetBottomPadding[0], - bottomSheetCloseButtonPadding: - _$WidgetToolkitTheme.bottomSheetCloseButtonPadding[0], - bottomSheetContentPadding: - _$WidgetToolkitTheme.bottomSheetContentPadding[0], - bottomSheetHeaderPadding: _$WidgetToolkitTheme.bottomSheetHeaderPadding[0], - bottomSheetLineColor: _$WidgetToolkitTheme.bottomSheetLineColor[0], - boxShadowColor: _$WidgetToolkitTheme.boxShadowColor[0], - buttonBlueGradientEnd: _$WidgetToolkitTheme.buttonBlueGradientEnd[0], - buttonBorderColor: _$WidgetToolkitTheme.buttonBorderColor[0], - buttonPressedColor: _$WidgetToolkitTheme.buttonPressedColor[0], - buttonShadowColor: _$WidgetToolkitTheme.buttonShadowColor[0], - buttonTextColor: _$WidgetToolkitTheme.buttonTextColor[0], - captionBold: _$WidgetToolkitTheme.captionBold[0], - checkCircleIcon: _$WidgetToolkitTheme.checkCircleIcon[0], - checkIcon: _$WidgetToolkitTheme.checkIcon[0], - closeIcon: _$WidgetToolkitTheme.closeIcon[0], - dangerIcon: _$WidgetToolkitTheme.dangerIcon[0], - darkBlue: _$WidgetToolkitTheme.darkBlue[0], - darkGreen: _$WidgetToolkitTheme.darkGreen[0], - descriptionBold: _$WidgetToolkitTheme.descriptionBold[0], - descriptionThin: _$WidgetToolkitTheme.descriptionThin[0], - disabledButtonTextColor: _$WidgetToolkitTheme.disabledButtonTextColor[0], - disabledFilledButtonBackgroundColor: - _$WidgetToolkitTheme.disabledFilledButtonBackgroundColor[0], - educateIcon: _$WidgetToolkitTheme.educateIcon[0], - elevatedButtonBackgroundColor: - _$WidgetToolkitTheme.elevatedButtonBackgroundColor[0], - errorCardBackgroundColor: _$WidgetToolkitTheme.errorCardBackgroundColor[0], - errorCardIconColor: _$WidgetToolkitTheme.errorCardIconColor[0], - errorCardTextColor: _$WidgetToolkitTheme.errorCardTextColor[0], - errorModalContentTitleInsets: - _$WidgetToolkitTheme.errorModalContentTitleInsets[0], - errorTitle: _$WidgetToolkitTheme.errorTitle[0], - filledButtonBackgroundColorDisabled: - _$WidgetToolkitTheme.filledButtonBackgroundColorDisabled[0], - filledButtonBackgroundColorPressed: - _$WidgetToolkitTheme.filledButtonBackgroundColorPressed[0], - filledButtonTextColorDisabled: - _$WidgetToolkitTheme.filledButtonTextColorDisabled[0], - filledButtonTextColorEnabled: - _$WidgetToolkitTheme.filledButtonTextColorEnabled[0], - greatNewsIcon: _$WidgetToolkitTheme.greatNewsIcon[0], - greenLight: _$WidgetToolkitTheme.greenLight[0], - highlightColor: _$WidgetToolkitTheme.highlightColor[0], - infoCircleIcon: _$WidgetToolkitTheme.infoCircleIcon[0], - largeEdgeInsets: _$WidgetToolkitTheme.largeEdgeInsets[0], - lightRed: _$WidgetToolkitTheme.lightRed[0], - loadingIndicatorColor: _$WidgetToolkitTheme.loadingIndicatorColor[0], - mediumEdgeInsets: _$WidgetToolkitTheme.mediumEdgeInsets[0], - messageIcon: _$WidgetToolkitTheme.messageIcon[0], - messagePanelBackgroundColor: - _$WidgetToolkitTheme.messagePanelBackgroundColor[0], - messagePanelEdgeInsets: _$WidgetToolkitTheme.messagePanelEdgeInsets[0], - messagePanelErrorEdgeInsets: - _$WidgetToolkitTheme.messagePanelErrorEdgeInsets[0], - orange: _$WidgetToolkitTheme.orange[0], - orangeLight: _$WidgetToolkitTheme.orangeLight[0], - outlineButtonBackgroundColor: - _$WidgetToolkitTheme.outlineButtonBackgroundColor[0], - outlineButtonBorderColor: _$WidgetToolkitTheme.outlineButtonBorderColor[0], - outlineButtonContentPadding: - _$WidgetToolkitTheme.outlineButtonContentPadding[0], - outlineButtonDescriptionTextStyle: - _$WidgetToolkitTheme.outlineButtonDescriptionTextStyle[0], - outlineButtonForegroundColor: - _$WidgetToolkitTheme.outlineButtonForegroundColor[0], - outlineButtonPressedColor: - _$WidgetToolkitTheme.outlineButtonPressedColor[0], - outlineButtonTextColor: _$WidgetToolkitTheme.outlineButtonTextColor[0], - outlineButtonTextColorDisabled: - _$WidgetToolkitTheme.outlineButtonTextColorDisabled[0], - outlineButtonTextStyle: _$WidgetToolkitTheme.outlineButtonTextStyle[0], - pickerListItemBorderRadius: - _$WidgetToolkitTheme.pickerListItemBorderRadius[0], - pickerListItemInnerEdgeInsets: - _$WidgetToolkitTheme.pickerListItemInnerEdgeInsets[0], - pickerListItemOuterEdgeInsets: - _$WidgetToolkitTheme.pickerListItemOuterEdgeInsets[0], - pickerListItemSelectedColor: - _$WidgetToolkitTheme.pickerListItemSelectedColor[0], - pickerListItemTextStyle: _$WidgetToolkitTheme.pickerListItemTextStyle[0], - pickerListItemUnselectedColor: - _$WidgetToolkitTheme.pickerListItemUnselectedColor[0], - primaryColor: _$WidgetToolkitTheme.primaryColor[0], - primaryGradientEnd: _$WidgetToolkitTheme.primaryGradientEnd[0], - primaryGradientStart: _$WidgetToolkitTheme.primaryGradientStart[0], - red: _$WidgetToolkitTheme.red[0], - scaffoldBackgroundColor: _$WidgetToolkitTheme.scaffoldBackgroundColor[0], - searchTextFieldBackgroundColor: - _$WidgetToolkitTheme.searchTextFieldBackgroundColor[0], - searchTextFieldBackgroundColorActive: - _$WidgetToolkitTheme.searchTextFieldBackgroundColorActive[0], - searchTextFieldBorderRadius: - _$WidgetToolkitTheme.searchTextFieldBorderRadius[0], - searchTextFieldBorderType: - _$WidgetToolkitTheme.searchTextFieldBorderType[0], - searchTextFieldHintStyle: _$WidgetToolkitTheme.searchTextFieldHintStyle[0], - searchTextFieldIconColor: _$WidgetToolkitTheme.searchTextFieldIconColor[0], - searchTextFieldIconColorActive: - _$WidgetToolkitTheme.searchTextFieldIconColorActive[0], - searchTextFieldIconEdgeInsets: - _$WidgetToolkitTheme.searchTextFieldIconEdgeInsets[0], - searchTextFieldTextStyle: _$WidgetToolkitTheme.searchTextFieldTextStyle[0], - shimmerBaseColor: _$WidgetToolkitTheme.shimmerBaseColor[0], - shimmerHighlightColor: _$WidgetToolkitTheme.shimmerHighlightColor[0], - smallButtonBackgroundColor: - _$WidgetToolkitTheme.smallButtonBackgroundColor[0], - smallButtonFilledBackgroundColor: - _$WidgetToolkitTheme.smallButtonFilledBackgroundColor[0], - smallButtonOutlinedBorderColor: - _$WidgetToolkitTheme.smallButtonOutlinedBorderColor[0], - smallEdgeInsets: _$WidgetToolkitTheme.smallEdgeInsets[0], - spacingL: _$WidgetToolkitTheme.spacingL[0], - spacingM: _$WidgetToolkitTheme.spacingM[0], - spacingS: _$WidgetToolkitTheme.spacingS[0], - spacingXL: _$WidgetToolkitTheme.spacingXL[0], - spacingXS: _$WidgetToolkitTheme.spacingXS[0], - spacingXS1: _$WidgetToolkitTheme.spacingXS1[0], - spacingXSS: _$WidgetToolkitTheme.spacingXSS[0], - spacingXXL: _$WidgetToolkitTheme.spacingXXL[0], - spacingXXXXL1: _$WidgetToolkitTheme.spacingXXXXL1[0], - textButtonBackgroundColor: - _$WidgetToolkitTheme.textButtonBackgroundColor[0], - textButtonIconRightPadding: - _$WidgetToolkitTheme.textButtonIconRightPadding[0], - textButtonLoadingIndicatorColor: - _$WidgetToolkitTheme.textButtonLoadingIndicatorColor[0], - textButtonPadding: _$WidgetToolkitTheme.textButtonPadding[0], - textButtonTextColorDisabled: - _$WidgetToolkitTheme.textButtonTextColorDisabled[0], - textButtonTextStyle: _$WidgetToolkitTheme.textButtonTextStyle[0], - textColorWhite: _$WidgetToolkitTheme.textColorWhite[0], - titleBold: _$WidgetToolkitTheme.titleBold[0], - white: _$WidgetToolkitTheme.white[0], - ); - - static final WidgetToolkitTheme dark = WidgetToolkitTheme( - activeButtonLanguageTextColor: - _$WidgetToolkitTheme.activeButtonLanguageTextColor[1], - activeButtonTextColor: _$WidgetToolkitTheme.activeButtonTextColor[1], - activeGradientColorEnd: _$WidgetToolkitTheme.activeGradientColorEnd[1], - activeGradientColorStart: _$WidgetToolkitTheme.activeGradientColorStart[1], - appBarTextButtonPadding: _$WidgetToolkitTheme.appBarTextButtonPadding[1], - backgroundColor: _$WidgetToolkitTheme.backgroundColor[1], - black: _$WidgetToolkitTheme.black[1], - blueLight: _$WidgetToolkitTheme.blueLight[1], - bodyTextColor2: _$WidgetToolkitTheme.bodyTextColor2[1], - bottomSheetBackgroundColor: - _$WidgetToolkitTheme.bottomSheetBackgroundColor[1], - bottomSheetBarrierColor: _$WidgetToolkitTheme.bottomSheetBarrierColor[1], - bottomSheetBorderColor: _$WidgetToolkitTheme.bottomSheetBorderColor[1], - bottomSheetBottomPadding: _$WidgetToolkitTheme.bottomSheetBottomPadding[1], - bottomSheetCloseButtonPadding: - _$WidgetToolkitTheme.bottomSheetCloseButtonPadding[1], - bottomSheetContentPadding: - _$WidgetToolkitTheme.bottomSheetContentPadding[1], - bottomSheetHeaderPadding: _$WidgetToolkitTheme.bottomSheetHeaderPadding[1], - bottomSheetLineColor: _$WidgetToolkitTheme.bottomSheetLineColor[1], - boxShadowColor: _$WidgetToolkitTheme.boxShadowColor[1], - buttonBlueGradientEnd: _$WidgetToolkitTheme.buttonBlueGradientEnd[1], - buttonBorderColor: _$WidgetToolkitTheme.buttonBorderColor[1], - buttonPressedColor: _$WidgetToolkitTheme.buttonPressedColor[1], - buttonShadowColor: _$WidgetToolkitTheme.buttonShadowColor[1], - buttonTextColor: _$WidgetToolkitTheme.buttonTextColor[1], - captionBold: _$WidgetToolkitTheme.captionBold[1], - checkCircleIcon: _$WidgetToolkitTheme.checkCircleIcon[1], - checkIcon: _$WidgetToolkitTheme.checkIcon[1], - closeIcon: _$WidgetToolkitTheme.closeIcon[1], - dangerIcon: _$WidgetToolkitTheme.dangerIcon[1], - darkBlue: _$WidgetToolkitTheme.darkBlue[1], - darkGreen: _$WidgetToolkitTheme.darkGreen[1], - descriptionBold: _$WidgetToolkitTheme.descriptionBold[1], - descriptionThin: _$WidgetToolkitTheme.descriptionThin[1], - disabledButtonTextColor: _$WidgetToolkitTheme.disabledButtonTextColor[1], - disabledFilledButtonBackgroundColor: - _$WidgetToolkitTheme.disabledFilledButtonBackgroundColor[1], - educateIcon: _$WidgetToolkitTheme.educateIcon[1], - elevatedButtonBackgroundColor: - _$WidgetToolkitTheme.elevatedButtonBackgroundColor[1], - errorCardBackgroundColor: _$WidgetToolkitTheme.errorCardBackgroundColor[1], - errorCardIconColor: _$WidgetToolkitTheme.errorCardIconColor[1], - errorCardTextColor: _$WidgetToolkitTheme.errorCardTextColor[1], - errorModalContentTitleInsets: - _$WidgetToolkitTheme.errorModalContentTitleInsets[1], - errorTitle: _$WidgetToolkitTheme.errorTitle[1], - filledButtonBackgroundColorDisabled: - _$WidgetToolkitTheme.filledButtonBackgroundColorDisabled[1], - filledButtonBackgroundColorPressed: - _$WidgetToolkitTheme.filledButtonBackgroundColorPressed[1], - filledButtonTextColorDisabled: - _$WidgetToolkitTheme.filledButtonTextColorDisabled[1], - filledButtonTextColorEnabled: - _$WidgetToolkitTheme.filledButtonTextColorEnabled[1], - greatNewsIcon: _$WidgetToolkitTheme.greatNewsIcon[1], - greenLight: _$WidgetToolkitTheme.greenLight[1], - highlightColor: _$WidgetToolkitTheme.highlightColor[1], - infoCircleIcon: _$WidgetToolkitTheme.infoCircleIcon[1], - largeEdgeInsets: _$WidgetToolkitTheme.largeEdgeInsets[1], - lightRed: _$WidgetToolkitTheme.lightRed[1], - loadingIndicatorColor: _$WidgetToolkitTheme.loadingIndicatorColor[1], - mediumEdgeInsets: _$WidgetToolkitTheme.mediumEdgeInsets[1], - messageIcon: _$WidgetToolkitTheme.messageIcon[1], - messagePanelBackgroundColor: - _$WidgetToolkitTheme.messagePanelBackgroundColor[1], - messagePanelEdgeInsets: _$WidgetToolkitTheme.messagePanelEdgeInsets[1], - messagePanelErrorEdgeInsets: - _$WidgetToolkitTheme.messagePanelErrorEdgeInsets[1], - orange: _$WidgetToolkitTheme.orange[1], - orangeLight: _$WidgetToolkitTheme.orangeLight[1], - outlineButtonBackgroundColor: - _$WidgetToolkitTheme.outlineButtonBackgroundColor[1], - outlineButtonBorderColor: _$WidgetToolkitTheme.outlineButtonBorderColor[1], - outlineButtonContentPadding: - _$WidgetToolkitTheme.outlineButtonContentPadding[1], - outlineButtonDescriptionTextStyle: - _$WidgetToolkitTheme.outlineButtonDescriptionTextStyle[1], - outlineButtonForegroundColor: - _$WidgetToolkitTheme.outlineButtonForegroundColor[1], - outlineButtonPressedColor: - _$WidgetToolkitTheme.outlineButtonPressedColor[1], - outlineButtonTextColor: _$WidgetToolkitTheme.outlineButtonTextColor[1], - outlineButtonTextColorDisabled: - _$WidgetToolkitTheme.outlineButtonTextColorDisabled[1], - outlineButtonTextStyle: _$WidgetToolkitTheme.outlineButtonTextStyle[1], - pickerListItemBorderRadius: - _$WidgetToolkitTheme.pickerListItemBorderRadius[1], - pickerListItemInnerEdgeInsets: - _$WidgetToolkitTheme.pickerListItemInnerEdgeInsets[1], - pickerListItemOuterEdgeInsets: - _$WidgetToolkitTheme.pickerListItemOuterEdgeInsets[1], - pickerListItemSelectedColor: - _$WidgetToolkitTheme.pickerListItemSelectedColor[1], - pickerListItemTextStyle: _$WidgetToolkitTheme.pickerListItemTextStyle[1], - pickerListItemUnselectedColor: - _$WidgetToolkitTheme.pickerListItemUnselectedColor[1], - primaryColor: _$WidgetToolkitTheme.primaryColor[1], - primaryGradientEnd: _$WidgetToolkitTheme.primaryGradientEnd[1], - primaryGradientStart: _$WidgetToolkitTheme.primaryGradientStart[1], - red: _$WidgetToolkitTheme.red[1], - scaffoldBackgroundColor: _$WidgetToolkitTheme.scaffoldBackgroundColor[1], - searchTextFieldBackgroundColor: - _$WidgetToolkitTheme.searchTextFieldBackgroundColor[1], - searchTextFieldBackgroundColorActive: - _$WidgetToolkitTheme.searchTextFieldBackgroundColorActive[1], - searchTextFieldBorderRadius: - _$WidgetToolkitTheme.searchTextFieldBorderRadius[1], - searchTextFieldBorderType: - _$WidgetToolkitTheme.searchTextFieldBorderType[1], - searchTextFieldHintStyle: _$WidgetToolkitTheme.searchTextFieldHintStyle[1], - searchTextFieldIconColor: _$WidgetToolkitTheme.searchTextFieldIconColor[1], - searchTextFieldIconColorActive: - _$WidgetToolkitTheme.searchTextFieldIconColorActive[1], - searchTextFieldIconEdgeInsets: - _$WidgetToolkitTheme.searchTextFieldIconEdgeInsets[1], - searchTextFieldTextStyle: _$WidgetToolkitTheme.searchTextFieldTextStyle[1], - shimmerBaseColor: _$WidgetToolkitTheme.shimmerBaseColor[1], - shimmerHighlightColor: _$WidgetToolkitTheme.shimmerHighlightColor[1], - smallButtonBackgroundColor: - _$WidgetToolkitTheme.smallButtonBackgroundColor[1], - smallButtonFilledBackgroundColor: - _$WidgetToolkitTheme.smallButtonFilledBackgroundColor[1], - smallButtonOutlinedBorderColor: - _$WidgetToolkitTheme.smallButtonOutlinedBorderColor[1], - smallEdgeInsets: _$WidgetToolkitTheme.smallEdgeInsets[1], - spacingL: _$WidgetToolkitTheme.spacingL[1], - spacingM: _$WidgetToolkitTheme.spacingM[1], - spacingS: _$WidgetToolkitTheme.spacingS[1], - spacingXL: _$WidgetToolkitTheme.spacingXL[1], - spacingXS: _$WidgetToolkitTheme.spacingXS[1], - spacingXS1: _$WidgetToolkitTheme.spacingXS1[1], - spacingXSS: _$WidgetToolkitTheme.spacingXSS[1], - spacingXXL: _$WidgetToolkitTheme.spacingXXL[1], - spacingXXXXL1: _$WidgetToolkitTheme.spacingXXXXL1[1], - textButtonBackgroundColor: - _$WidgetToolkitTheme.textButtonBackgroundColor[1], - textButtonIconRightPadding: - _$WidgetToolkitTheme.textButtonIconRightPadding[1], - textButtonLoadingIndicatorColor: - _$WidgetToolkitTheme.textButtonLoadingIndicatorColor[1], - textButtonPadding: _$WidgetToolkitTheme.textButtonPadding[1], - textButtonTextColorDisabled: - _$WidgetToolkitTheme.textButtonTextColorDisabled[1], - textButtonTextStyle: _$WidgetToolkitTheme.textButtonTextStyle[1], - textColorWhite: _$WidgetToolkitTheme.textColorWhite[1], - titleBold: _$WidgetToolkitTheme.titleBold[1], - white: _$WidgetToolkitTheme.white[1], - ); - - static final themes = [ - light, - dark, - ]; +mixin _$WidgetToolkitThemeTailorMixin on ThemeExtension { + Color get primaryColor; + Color get backgroundColor; + Color get scaffoldBackgroundColor; + Color get highlightColor; + Color get primaryGradientStart; + Color get primaryGradientEnd; + Color get searchTextFieldIconColor; + Color get searchTextFieldIconColorActive; + Color get searchTextFieldBackgroundColor; + Color get searchTextFieldBackgroundColorActive; + double get searchTextFieldBorderRadius; + BoxBorder get searchTextFieldBorderType; + EdgeInsets get searchTextFieldIconEdgeInsets; + TextStyle get searchTextFieldHintStyle; + TextStyle get searchTextFieldTextStyle; + EdgeInsets get pickerListItemInnerEdgeInsets; + EdgeInsets get pickerListItemOuterEdgeInsets; + double get pickerListItemBorderRadius; + Color get pickerListItemSelectedColor; + Color get pickerListItemUnselectedColor; + TextStyle get pickerListItemTextStyle; + TextStyle get captionBold; + TextStyle get textButtonTextStyle; + Color get errorCardIconColor; + Color get errorCardBackgroundColor; + Color get lightRed; + Color get blueLight; + Color get greenLight; + Color get errorCardTextColor; + Color get bottomSheetBarrierColor; + Color get messagePanelBackgroundColor; + Color get bottomSheetLineColor; + Color get bottomSheetBackgroundColor; + Color get bottomSheetBorderColor; + Color get loadingIndicatorColor; + TextStyle get descriptionBold; + TextStyle get titleBold; + TextStyle get descriptionThin; + TextStyle get errorTitle; + Color get disabledFilledButtonBackgroundColor; + Color get filledButtonBackgroundColorDisabled; + Color get filledButtonBackgroundColorPressed; + Color get filledButtonTextColorDisabled; + Color get textButtonTextColorDisabled; + Color get textButtonBackgroundColor; + Color get filledButtonTextColorEnabled; + Color get smallButtonBackgroundColor; + Color get buttonTextColor; + Color get shimmerBaseColor; + Color get shimmerHighlightColor; + Color get white; + Color get buttonBlueGradientEnd; + Color get elevatedButtonBackgroundColor; + Color get textColorWhite; + Color get bodyTextColor2; + Color get smallButtonFilledBackgroundColor; + Color get smallButtonOutlinedBorderColor; + Color get activeButtonLanguageTextColor; + Color get activeButtonTextColor; + Color get disabledButtonTextColor; + Color get black; + Color get activeGradientColorStart; + Color get activeGradientColorEnd; + Color get boxShadowColor; + Color get red; + Color get orange; + Color get orangeLight; + Color get darkBlue; + Color get darkGreen; + Color get textButtonLoadingIndicatorColor; + Color get buttonShadowColor; + Color get buttonPressedColor; + Color get buttonBorderColor; + EdgeInsets get outlineButtonContentPadding; + TextStyle get outlineButtonTextStyle; + TextStyle get outlineButtonDescriptionTextStyle; + Color get outlineButtonBackgroundColor; + Color get outlineButtonForegroundColor; + Color get outlineButtonBorderColor; + Color get outlineButtonPressedColor; + Color get outlineButtonTextColor; + Color get outlineButtonTextColorDisabled; + EdgeInsets get bottomSheetHeaderPadding; + EdgeInsets get bottomSheetCloseButtonPadding; + EdgeInsets get bottomSheetContentPadding; + EdgeInsets get messagePanelErrorEdgeInsets; + EdgeInsets get errorModalContentTitleInsets; + EdgeInsets get smallEdgeInsets; + EdgeInsets get mediumEdgeInsets; + EdgeInsets get largeEdgeInsets; + EdgeInsets get messagePanelEdgeInsets; + double get spacingXS1; + double get spacingXS; + double get spacingXSS; + double get spacingS; + double get spacingM; + double get spacingL; + double get spacingXL; + double get spacingXXL; + double get spacingXXXXL1; + double get textButtonIconRightPadding; + double get textButtonPadding; + double get appBarTextButtonPadding; + double get bottomSheetBottomPadding; + SvgFile get checkIcon; + SvgFile get checkCircleIcon; + SvgFile get closeIcon; + SvgFile get dangerIcon; + SvgFile get educateIcon; + SvgFile get greatNewsIcon; + SvgFile get infoCircleIcon; + SvgFile get messageIcon; @override WidgetToolkitTheme copyWith({ - Color? activeButtonLanguageTextColor, - Color? activeButtonTextColor, - Color? activeGradientColorEnd, - Color? activeGradientColorStart, - double? appBarTextButtonPadding, + Color? primaryColor, Color? backgroundColor, - Color? black, + Color? scaffoldBackgroundColor, + Color? highlightColor, + Color? primaryGradientStart, + Color? primaryGradientEnd, + Color? searchTextFieldIconColor, + Color? searchTextFieldIconColorActive, + Color? searchTextFieldBackgroundColor, + Color? searchTextFieldBackgroundColorActive, + double? searchTextFieldBorderRadius, + BoxBorder? searchTextFieldBorderType, + EdgeInsets? searchTextFieldIconEdgeInsets, + TextStyle? searchTextFieldHintStyle, + TextStyle? searchTextFieldTextStyle, + EdgeInsets? pickerListItemInnerEdgeInsets, + EdgeInsets? pickerListItemOuterEdgeInsets, + double? pickerListItemBorderRadius, + Color? pickerListItemSelectedColor, + Color? pickerListItemUnselectedColor, + TextStyle? pickerListItemTextStyle, + TextStyle? captionBold, + TextStyle? textButtonTextStyle, + Color? errorCardIconColor, + Color? errorCardBackgroundColor, + Color? lightRed, Color? blueLight, - Color? bodyTextColor2, - Color? bottomSheetBackgroundColor, + Color? greenLight, + Color? errorCardTextColor, Color? bottomSheetBarrierColor, - Color? bottomSheetBorderColor, - double? bottomSheetBottomPadding, - EdgeInsets? bottomSheetCloseButtonPadding, - EdgeInsets? bottomSheetContentPadding, - EdgeInsets? bottomSheetHeaderPadding, + Color? messagePanelBackgroundColor, Color? bottomSheetLineColor, - Color? boxShadowColor, - Color? buttonBlueGradientEnd, - Color? buttonBorderColor, - Color? buttonPressedColor, - Color? buttonShadowColor, - Color? buttonTextColor, - TextStyle? captionBold, - SvgFile? checkCircleIcon, - SvgFile? checkIcon, - SvgFile? closeIcon, - SvgFile? dangerIcon, - Color? darkBlue, - Color? darkGreen, + Color? bottomSheetBackgroundColor, + Color? bottomSheetBorderColor, + Color? loadingIndicatorColor, TextStyle? descriptionBold, + TextStyle? titleBold, TextStyle? descriptionThin, - Color? disabledButtonTextColor, - Color? disabledFilledButtonBackgroundColor, - SvgFile? educateIcon, - Color? elevatedButtonBackgroundColor, - Color? errorCardBackgroundColor, - Color? errorCardIconColor, - Color? errorCardTextColor, - EdgeInsets? errorModalContentTitleInsets, TextStyle? errorTitle, + Color? disabledFilledButtonBackgroundColor, Color? filledButtonBackgroundColorDisabled, Color? filledButtonBackgroundColorPressed, Color? filledButtonTextColorDisabled, + Color? textButtonTextColorDisabled, + Color? textButtonBackgroundColor, Color? filledButtonTextColorEnabled, - SvgFile? greatNewsIcon, - Color? greenLight, - Color? highlightColor, - SvgFile? infoCircleIcon, - EdgeInsets? largeEdgeInsets, - Color? lightRed, - Color? loadingIndicatorColor, - EdgeInsets? mediumEdgeInsets, - SvgFile? messageIcon, - Color? messagePanelBackgroundColor, - EdgeInsets? messagePanelEdgeInsets, - EdgeInsets? messagePanelErrorEdgeInsets, + Color? smallButtonBackgroundColor, + Color? buttonTextColor, + Color? shimmerBaseColor, + Color? shimmerHighlightColor, + Color? white, + Color? buttonBlueGradientEnd, + Color? elevatedButtonBackgroundColor, + Color? textColorWhite, + Color? bodyTextColor2, + Color? smallButtonFilledBackgroundColor, + Color? smallButtonOutlinedBorderColor, + Color? activeButtonLanguageTextColor, + Color? activeButtonTextColor, + Color? disabledButtonTextColor, + Color? black, + Color? activeGradientColorStart, + Color? activeGradientColorEnd, + Color? boxShadowColor, + Color? red, Color? orange, Color? orangeLight, - Color? outlineButtonBackgroundColor, - Color? outlineButtonBorderColor, + Color? darkBlue, + Color? darkGreen, + Color? textButtonLoadingIndicatorColor, + Color? buttonShadowColor, + Color? buttonPressedColor, + Color? buttonBorderColor, EdgeInsets? outlineButtonContentPadding, + TextStyle? outlineButtonTextStyle, TextStyle? outlineButtonDescriptionTextStyle, + Color? outlineButtonBackgroundColor, Color? outlineButtonForegroundColor, + Color? outlineButtonBorderColor, Color? outlineButtonPressedColor, Color? outlineButtonTextColor, Color? outlineButtonTextColorDisabled, - TextStyle? outlineButtonTextStyle, - double? pickerListItemBorderRadius, - EdgeInsets? pickerListItemInnerEdgeInsets, - EdgeInsets? pickerListItemOuterEdgeInsets, - Color? pickerListItemSelectedColor, - TextStyle? pickerListItemTextStyle, - Color? pickerListItemUnselectedColor, - Color? primaryColor, - Color? primaryGradientEnd, - Color? primaryGradientStart, - Color? red, - Color? scaffoldBackgroundColor, - Color? searchTextFieldBackgroundColor, - Color? searchTextFieldBackgroundColorActive, - double? searchTextFieldBorderRadius, - BoxBorder? searchTextFieldBorderType, - TextStyle? searchTextFieldHintStyle, - Color? searchTextFieldIconColor, - Color? searchTextFieldIconColorActive, - EdgeInsets? searchTextFieldIconEdgeInsets, - TextStyle? searchTextFieldTextStyle, - Color? shimmerBaseColor, - Color? shimmerHighlightColor, - Color? smallButtonBackgroundColor, - Color? smallButtonFilledBackgroundColor, - Color? smallButtonOutlinedBorderColor, + EdgeInsets? bottomSheetHeaderPadding, + EdgeInsets? bottomSheetCloseButtonPadding, + EdgeInsets? bottomSheetContentPadding, + EdgeInsets? messagePanelErrorEdgeInsets, + EdgeInsets? errorModalContentTitleInsets, EdgeInsets? smallEdgeInsets, - double? spacingL, - double? spacingM, - double? spacingS, - double? spacingXL, - double? spacingXS, + EdgeInsets? mediumEdgeInsets, + EdgeInsets? largeEdgeInsets, + EdgeInsets? messagePanelEdgeInsets, double? spacingXS1, + double? spacingXS, double? spacingXSS, + double? spacingS, + double? spacingM, + double? spacingL, + double? spacingXL, double? spacingXXL, double? spacingXXXXL1, - Color? textButtonBackgroundColor, double? textButtonIconRightPadding, - Color? textButtonLoadingIndicatorColor, double? textButtonPadding, - Color? textButtonTextColorDisabled, - TextStyle? textButtonTextStyle, - Color? textColorWhite, - TextStyle? titleBold, - Color? white, + double? appBarTextButtonPadding, + double? bottomSheetBottomPadding, + SvgFile? checkIcon, + SvgFile? checkCircleIcon, + SvgFile? closeIcon, + SvgFile? dangerIcon, + SvgFile? educateIcon, + SvgFile? greatNewsIcon, + SvgFile? infoCircleIcon, + SvgFile? messageIcon, }) { return WidgetToolkitTheme( - activeButtonLanguageTextColor: - activeButtonLanguageTextColor ?? this.activeButtonLanguageTextColor, - activeButtonTextColor: - activeButtonTextColor ?? this.activeButtonTextColor, - activeGradientColorEnd: - activeGradientColorEnd ?? this.activeGradientColorEnd, - activeGradientColorStart: - activeGradientColorStart ?? this.activeGradientColorStart, - appBarTextButtonPadding: - appBarTextButtonPadding ?? this.appBarTextButtonPadding, + primaryColor: primaryColor ?? this.primaryColor, backgroundColor: backgroundColor ?? this.backgroundColor, - black: black ?? this.black, + scaffoldBackgroundColor: + scaffoldBackgroundColor ?? this.scaffoldBackgroundColor, + highlightColor: highlightColor ?? this.highlightColor, + primaryGradientStart: primaryGradientStart ?? this.primaryGradientStart, + primaryGradientEnd: primaryGradientEnd ?? this.primaryGradientEnd, + searchTextFieldIconColor: + searchTextFieldIconColor ?? this.searchTextFieldIconColor, + searchTextFieldIconColorActive: + searchTextFieldIconColorActive ?? this.searchTextFieldIconColorActive, + searchTextFieldBackgroundColor: + searchTextFieldBackgroundColor ?? this.searchTextFieldBackgroundColor, + searchTextFieldBackgroundColorActive: + searchTextFieldBackgroundColorActive ?? + this.searchTextFieldBackgroundColorActive, + searchTextFieldBorderRadius: + searchTextFieldBorderRadius ?? this.searchTextFieldBorderRadius, + searchTextFieldBorderType: + searchTextFieldBorderType ?? this.searchTextFieldBorderType, + searchTextFieldIconEdgeInsets: + searchTextFieldIconEdgeInsets ?? this.searchTextFieldIconEdgeInsets, + searchTextFieldHintStyle: + searchTextFieldHintStyle ?? this.searchTextFieldHintStyle, + searchTextFieldTextStyle: + searchTextFieldTextStyle ?? this.searchTextFieldTextStyle, + pickerListItemInnerEdgeInsets: + pickerListItemInnerEdgeInsets ?? this.pickerListItemInnerEdgeInsets, + pickerListItemOuterEdgeInsets: + pickerListItemOuterEdgeInsets ?? this.pickerListItemOuterEdgeInsets, + pickerListItemBorderRadius: + pickerListItemBorderRadius ?? this.pickerListItemBorderRadius, + pickerListItemSelectedColor: + pickerListItemSelectedColor ?? this.pickerListItemSelectedColor, + pickerListItemUnselectedColor: + pickerListItemUnselectedColor ?? this.pickerListItemUnselectedColor, + pickerListItemTextStyle: + pickerListItemTextStyle ?? this.pickerListItemTextStyle, + captionBold: captionBold ?? this.captionBold, + textButtonTextStyle: textButtonTextStyle ?? this.textButtonTextStyle, + errorCardIconColor: errorCardIconColor ?? this.errorCardIconColor, + errorCardBackgroundColor: + errorCardBackgroundColor ?? this.errorCardBackgroundColor, + lightRed: lightRed ?? this.lightRed, blueLight: blueLight ?? this.blueLight, - bodyTextColor2: bodyTextColor2 ?? this.bodyTextColor2, - bottomSheetBackgroundColor: - bottomSheetBackgroundColor ?? this.bottomSheetBackgroundColor, + greenLight: greenLight ?? this.greenLight, + errorCardTextColor: errorCardTextColor ?? this.errorCardTextColor, bottomSheetBarrierColor: bottomSheetBarrierColor ?? this.bottomSheetBarrierColor, + messagePanelBackgroundColor: + messagePanelBackgroundColor ?? this.messagePanelBackgroundColor, + bottomSheetLineColor: bottomSheetLineColor ?? this.bottomSheetLineColor, + bottomSheetBackgroundColor: + bottomSheetBackgroundColor ?? this.bottomSheetBackgroundColor, bottomSheetBorderColor: bottomSheetBorderColor ?? this.bottomSheetBorderColor, - bottomSheetBottomPadding: - bottomSheetBottomPadding ?? this.bottomSheetBottomPadding, - bottomSheetCloseButtonPadding: - bottomSheetCloseButtonPadding ?? this.bottomSheetCloseButtonPadding, - bottomSheetContentPadding: - bottomSheetContentPadding ?? this.bottomSheetContentPadding, - bottomSheetHeaderPadding: - bottomSheetHeaderPadding ?? this.bottomSheetHeaderPadding, - bottomSheetLineColor: bottomSheetLineColor ?? this.bottomSheetLineColor, - boxShadowColor: boxShadowColor ?? this.boxShadowColor, - buttonBlueGradientEnd: - buttonBlueGradientEnd ?? this.buttonBlueGradientEnd, - buttonBorderColor: buttonBorderColor ?? this.buttonBorderColor, - buttonPressedColor: buttonPressedColor ?? this.buttonPressedColor, - buttonShadowColor: buttonShadowColor ?? this.buttonShadowColor, - buttonTextColor: buttonTextColor ?? this.buttonTextColor, - captionBold: captionBold ?? this.captionBold, - checkCircleIcon: checkCircleIcon ?? this.checkCircleIcon, - checkIcon: checkIcon ?? this.checkIcon, - closeIcon: closeIcon ?? this.closeIcon, - dangerIcon: dangerIcon ?? this.dangerIcon, - darkBlue: darkBlue ?? this.darkBlue, - darkGreen: darkGreen ?? this.darkGreen, + loadingIndicatorColor: + loadingIndicatorColor ?? this.loadingIndicatorColor, descriptionBold: descriptionBold ?? this.descriptionBold, + titleBold: titleBold ?? this.titleBold, descriptionThin: descriptionThin ?? this.descriptionThin, - disabledButtonTextColor: - disabledButtonTextColor ?? this.disabledButtonTextColor, + errorTitle: errorTitle ?? this.errorTitle, disabledFilledButtonBackgroundColor: disabledFilledButtonBackgroundColor ?? - this.disabledFilledButtonBackgroundColor, - educateIcon: educateIcon ?? this.educateIcon, - elevatedButtonBackgroundColor: - elevatedButtonBackgroundColor ?? this.elevatedButtonBackgroundColor, - errorCardBackgroundColor: - errorCardBackgroundColor ?? this.errorCardBackgroundColor, - errorCardIconColor: errorCardIconColor ?? this.errorCardIconColor, - errorCardTextColor: errorCardTextColor ?? this.errorCardTextColor, - errorModalContentTitleInsets: - errorModalContentTitleInsets ?? this.errorModalContentTitleInsets, - errorTitle: errorTitle ?? this.errorTitle, + this.disabledFilledButtonBackgroundColor, filledButtonBackgroundColorDisabled: filledButtonBackgroundColorDisabled ?? this.filledButtonBackgroundColorDisabled, @@ -746,113 +310,108 @@ class WidgetToolkitTheme extends ThemeExtension { this.filledButtonBackgroundColorPressed, filledButtonTextColorDisabled: filledButtonTextColorDisabled ?? this.filledButtonTextColorDisabled, + textButtonTextColorDisabled: + textButtonTextColorDisabled ?? this.textButtonTextColorDisabled, + textButtonBackgroundColor: + textButtonBackgroundColor ?? this.textButtonBackgroundColor, filledButtonTextColorEnabled: filledButtonTextColorEnabled ?? this.filledButtonTextColorEnabled, - greatNewsIcon: greatNewsIcon ?? this.greatNewsIcon, - greenLight: greenLight ?? this.greenLight, - highlightColor: highlightColor ?? this.highlightColor, - infoCircleIcon: infoCircleIcon ?? this.infoCircleIcon, - largeEdgeInsets: largeEdgeInsets ?? this.largeEdgeInsets, - lightRed: lightRed ?? this.lightRed, - loadingIndicatorColor: - loadingIndicatorColor ?? this.loadingIndicatorColor, - mediumEdgeInsets: mediumEdgeInsets ?? this.mediumEdgeInsets, - messageIcon: messageIcon ?? this.messageIcon, - messagePanelBackgroundColor: - messagePanelBackgroundColor ?? this.messagePanelBackgroundColor, - messagePanelEdgeInsets: - messagePanelEdgeInsets ?? this.messagePanelEdgeInsets, - messagePanelErrorEdgeInsets: - messagePanelErrorEdgeInsets ?? this.messagePanelErrorEdgeInsets, + smallButtonBackgroundColor: + smallButtonBackgroundColor ?? this.smallButtonBackgroundColor, + buttonTextColor: buttonTextColor ?? this.buttonTextColor, + shimmerBaseColor: shimmerBaseColor ?? this.shimmerBaseColor, + shimmerHighlightColor: + shimmerHighlightColor ?? this.shimmerHighlightColor, + white: white ?? this.white, + buttonBlueGradientEnd: + buttonBlueGradientEnd ?? this.buttonBlueGradientEnd, + elevatedButtonBackgroundColor: + elevatedButtonBackgroundColor ?? this.elevatedButtonBackgroundColor, + textColorWhite: textColorWhite ?? this.textColorWhite, + bodyTextColor2: bodyTextColor2 ?? this.bodyTextColor2, + smallButtonFilledBackgroundColor: smallButtonFilledBackgroundColor ?? + this.smallButtonFilledBackgroundColor, + smallButtonOutlinedBorderColor: + smallButtonOutlinedBorderColor ?? this.smallButtonOutlinedBorderColor, + activeButtonLanguageTextColor: + activeButtonLanguageTextColor ?? this.activeButtonLanguageTextColor, + activeButtonTextColor: + activeButtonTextColor ?? this.activeButtonTextColor, + disabledButtonTextColor: + disabledButtonTextColor ?? this.disabledButtonTextColor, + black: black ?? this.black, + activeGradientColorStart: + activeGradientColorStart ?? this.activeGradientColorStart, + activeGradientColorEnd: + activeGradientColorEnd ?? this.activeGradientColorEnd, + boxShadowColor: boxShadowColor ?? this.boxShadowColor, + red: red ?? this.red, orange: orange ?? this.orange, orangeLight: orangeLight ?? this.orangeLight, - outlineButtonBackgroundColor: - outlineButtonBackgroundColor ?? this.outlineButtonBackgroundColor, - outlineButtonBorderColor: - outlineButtonBorderColor ?? this.outlineButtonBorderColor, + darkBlue: darkBlue ?? this.darkBlue, + darkGreen: darkGreen ?? this.darkGreen, + textButtonLoadingIndicatorColor: textButtonLoadingIndicatorColor ?? + this.textButtonLoadingIndicatorColor, + buttonShadowColor: buttonShadowColor ?? this.buttonShadowColor, + buttonPressedColor: buttonPressedColor ?? this.buttonPressedColor, + buttonBorderColor: buttonBorderColor ?? this.buttonBorderColor, outlineButtonContentPadding: outlineButtonContentPadding ?? this.outlineButtonContentPadding, + outlineButtonTextStyle: + outlineButtonTextStyle ?? this.outlineButtonTextStyle, outlineButtonDescriptionTextStyle: outlineButtonDescriptionTextStyle ?? this.outlineButtonDescriptionTextStyle, + outlineButtonBackgroundColor: + outlineButtonBackgroundColor ?? this.outlineButtonBackgroundColor, outlineButtonForegroundColor: outlineButtonForegroundColor ?? this.outlineButtonForegroundColor, + outlineButtonBorderColor: + outlineButtonBorderColor ?? this.outlineButtonBorderColor, outlineButtonPressedColor: outlineButtonPressedColor ?? this.outlineButtonPressedColor, outlineButtonTextColor: outlineButtonTextColor ?? this.outlineButtonTextColor, outlineButtonTextColorDisabled: outlineButtonTextColorDisabled ?? this.outlineButtonTextColorDisabled, - outlineButtonTextStyle: - outlineButtonTextStyle ?? this.outlineButtonTextStyle, - pickerListItemBorderRadius: - pickerListItemBorderRadius ?? this.pickerListItemBorderRadius, - pickerListItemInnerEdgeInsets: - pickerListItemInnerEdgeInsets ?? this.pickerListItemInnerEdgeInsets, - pickerListItemOuterEdgeInsets: - pickerListItemOuterEdgeInsets ?? this.pickerListItemOuterEdgeInsets, - pickerListItemSelectedColor: - pickerListItemSelectedColor ?? this.pickerListItemSelectedColor, - pickerListItemTextStyle: - pickerListItemTextStyle ?? this.pickerListItemTextStyle, - pickerListItemUnselectedColor: - pickerListItemUnselectedColor ?? this.pickerListItemUnselectedColor, - primaryColor: primaryColor ?? this.primaryColor, - primaryGradientEnd: primaryGradientEnd ?? this.primaryGradientEnd, - primaryGradientStart: primaryGradientStart ?? this.primaryGradientStart, - red: red ?? this.red, - scaffoldBackgroundColor: - scaffoldBackgroundColor ?? this.scaffoldBackgroundColor, - searchTextFieldBackgroundColor: - searchTextFieldBackgroundColor ?? this.searchTextFieldBackgroundColor, - searchTextFieldBackgroundColorActive: - searchTextFieldBackgroundColorActive ?? - this.searchTextFieldBackgroundColorActive, - searchTextFieldBorderRadius: - searchTextFieldBorderRadius ?? this.searchTextFieldBorderRadius, - searchTextFieldBorderType: - searchTextFieldBorderType ?? this.searchTextFieldBorderType, - searchTextFieldHintStyle: - searchTextFieldHintStyle ?? this.searchTextFieldHintStyle, - searchTextFieldIconColor: - searchTextFieldIconColor ?? this.searchTextFieldIconColor, - searchTextFieldIconColorActive: - searchTextFieldIconColorActive ?? this.searchTextFieldIconColorActive, - searchTextFieldIconEdgeInsets: - searchTextFieldIconEdgeInsets ?? this.searchTextFieldIconEdgeInsets, - searchTextFieldTextStyle: - searchTextFieldTextStyle ?? this.searchTextFieldTextStyle, - shimmerBaseColor: shimmerBaseColor ?? this.shimmerBaseColor, - shimmerHighlightColor: - shimmerHighlightColor ?? this.shimmerHighlightColor, - smallButtonBackgroundColor: - smallButtonBackgroundColor ?? this.smallButtonBackgroundColor, - smallButtonFilledBackgroundColor: smallButtonFilledBackgroundColor ?? - this.smallButtonFilledBackgroundColor, - smallButtonOutlinedBorderColor: - smallButtonOutlinedBorderColor ?? this.smallButtonOutlinedBorderColor, + bottomSheetHeaderPadding: + bottomSheetHeaderPadding ?? this.bottomSheetHeaderPadding, + bottomSheetCloseButtonPadding: + bottomSheetCloseButtonPadding ?? this.bottomSheetCloseButtonPadding, + bottomSheetContentPadding: + bottomSheetContentPadding ?? this.bottomSheetContentPadding, + messagePanelErrorEdgeInsets: + messagePanelErrorEdgeInsets ?? this.messagePanelErrorEdgeInsets, + errorModalContentTitleInsets: + errorModalContentTitleInsets ?? this.errorModalContentTitleInsets, smallEdgeInsets: smallEdgeInsets ?? this.smallEdgeInsets, - spacingL: spacingL ?? this.spacingL, - spacingM: spacingM ?? this.spacingM, - spacingS: spacingS ?? this.spacingS, - spacingXL: spacingXL ?? this.spacingXL, - spacingXS: spacingXS ?? this.spacingXS, + mediumEdgeInsets: mediumEdgeInsets ?? this.mediumEdgeInsets, + largeEdgeInsets: largeEdgeInsets ?? this.largeEdgeInsets, + messagePanelEdgeInsets: + messagePanelEdgeInsets ?? this.messagePanelEdgeInsets, spacingXS1: spacingXS1 ?? this.spacingXS1, + spacingXS: spacingXS ?? this.spacingXS, spacingXSS: spacingXSS ?? this.spacingXSS, + spacingS: spacingS ?? this.spacingS, + spacingM: spacingM ?? this.spacingM, + spacingL: spacingL ?? this.spacingL, + spacingXL: spacingXL ?? this.spacingXL, spacingXXL: spacingXXL ?? this.spacingXXL, spacingXXXXL1: spacingXXXXL1 ?? this.spacingXXXXL1, - textButtonBackgroundColor: - textButtonBackgroundColor ?? this.textButtonBackgroundColor, textButtonIconRightPadding: textButtonIconRightPadding ?? this.textButtonIconRightPadding, - textButtonLoadingIndicatorColor: textButtonLoadingIndicatorColor ?? - this.textButtonLoadingIndicatorColor, textButtonPadding: textButtonPadding ?? this.textButtonPadding, - textButtonTextColorDisabled: - textButtonTextColorDisabled ?? this.textButtonTextColorDisabled, - textButtonTextStyle: textButtonTextStyle ?? this.textButtonTextStyle, - textColorWhite: textColorWhite ?? this.textColorWhite, - titleBold: titleBold ?? this.titleBold, - white: white ?? this.white, + appBarTextButtonPadding: + appBarTextButtonPadding ?? this.appBarTextButtonPadding, + bottomSheetBottomPadding: + bottomSheetBottomPadding ?? this.bottomSheetBottomPadding, + checkIcon: checkIcon ?? this.checkIcon, + checkCircleIcon: checkCircleIcon ?? this.checkCircleIcon, + closeIcon: closeIcon ?? this.closeIcon, + dangerIcon: dangerIcon ?? this.dangerIcon, + educateIcon: educateIcon ?? this.educateIcon, + greatNewsIcon: greatNewsIcon ?? this.greatNewsIcon, + infoCircleIcon: infoCircleIcon ?? this.infoCircleIcon, + messageIcon: messageIcon ?? this.messageIcon, ); } @@ -861,77 +420,86 @@ class WidgetToolkitTheme extends ThemeExtension { covariant ThemeExtension? other, double t) { if (other is! WidgetToolkitTheme) return this as WidgetToolkitTheme; return WidgetToolkitTheme( - activeButtonLanguageTextColor: Color.lerp(activeButtonLanguageTextColor, - other.activeButtonLanguageTextColor, t)!, - activeButtonTextColor: - Color.lerp(activeButtonTextColor, other.activeButtonTextColor, t)!, - activeGradientColorEnd: - Color.lerp(activeGradientColorEnd, other.activeGradientColorEnd, t)!, - activeGradientColorStart: Color.lerp( - activeGradientColorStart, other.activeGradientColorStart, t)!, - appBarTextButtonPadding: - t < 0.5 ? appBarTextButtonPadding : other.appBarTextButtonPadding, + primaryColor: Color.lerp(primaryColor, other.primaryColor, t)!, backgroundColor: Color.lerp(backgroundColor, other.backgroundColor, t)!, - black: Color.lerp(black, other.black, t)!, - blueLight: Color.lerp(blueLight, other.blueLight, t)!, - bodyTextColor2: Color.lerp(bodyTextColor2, other.bodyTextColor2, t)!, - bottomSheetBackgroundColor: Color.lerp( - bottomSheetBackgroundColor, other.bottomSheetBackgroundColor, t)!, - bottomSheetBarrierColor: Color.lerp( - bottomSheetBarrierColor, other.bottomSheetBarrierColor, t)!, - bottomSheetBorderColor: - Color.lerp(bottomSheetBorderColor, other.bottomSheetBorderColor, t)!, - bottomSheetBottomPadding: - t < 0.5 ? bottomSheetBottomPadding : other.bottomSheetBottomPadding, - bottomSheetCloseButtonPadding: t < 0.5 - ? bottomSheetCloseButtonPadding - : other.bottomSheetCloseButtonPadding, - bottomSheetContentPadding: - t < 0.5 ? bottomSheetContentPadding : other.bottomSheetContentPadding, - bottomSheetHeaderPadding: - t < 0.5 ? bottomSheetHeaderPadding : other.bottomSheetHeaderPadding, - bottomSheetLineColor: - Color.lerp(bottomSheetLineColor, other.bottomSheetLineColor, t)!, - boxShadowColor: Color.lerp(boxShadowColor, other.boxShadowColor, t)!, - buttonBlueGradientEnd: - Color.lerp(buttonBlueGradientEnd, other.buttonBlueGradientEnd, t)!, - buttonBorderColor: - Color.lerp(buttonBorderColor, other.buttonBorderColor, t)!, - buttonPressedColor: - Color.lerp(buttonPressedColor, other.buttonPressedColor, t)!, - buttonShadowColor: - Color.lerp(buttonShadowColor, other.buttonShadowColor, t)!, - buttonTextColor: Color.lerp(buttonTextColor, other.buttonTextColor, t)!, + scaffoldBackgroundColor: Color.lerp( + scaffoldBackgroundColor, other.scaffoldBackgroundColor, t)!, + highlightColor: Color.lerp(highlightColor, other.highlightColor, t)!, + primaryGradientStart: + Color.lerp(primaryGradientStart, other.primaryGradientStart, t)!, + primaryGradientEnd: + Color.lerp(primaryGradientEnd, other.primaryGradientEnd, t)!, + searchTextFieldIconColor: Color.lerp( + searchTextFieldIconColor, other.searchTextFieldIconColor, t)!, + searchTextFieldIconColorActive: Color.lerp(searchTextFieldIconColorActive, + other.searchTextFieldIconColorActive, t)!, + searchTextFieldBackgroundColor: Color.lerp(searchTextFieldBackgroundColor, + other.searchTextFieldBackgroundColor, t)!, + searchTextFieldBackgroundColorActive: Color.lerp( + searchTextFieldBackgroundColorActive, + other.searchTextFieldBackgroundColorActive, + t)!, + searchTextFieldBorderRadius: t < 0.5 + ? searchTextFieldBorderRadius + : other.searchTextFieldBorderRadius, + searchTextFieldBorderType: + t < 0.5 ? searchTextFieldBorderType : other.searchTextFieldBorderType, + searchTextFieldIconEdgeInsets: t < 0.5 + ? searchTextFieldIconEdgeInsets + : other.searchTextFieldIconEdgeInsets, + searchTextFieldHintStyle: TextStyle.lerp( + searchTextFieldHintStyle, other.searchTextFieldHintStyle, t)!, + searchTextFieldTextStyle: TextStyle.lerp( + searchTextFieldTextStyle, other.searchTextFieldTextStyle, t)!, + pickerListItemInnerEdgeInsets: t < 0.5 + ? pickerListItemInnerEdgeInsets + : other.pickerListItemInnerEdgeInsets, + pickerListItemOuterEdgeInsets: t < 0.5 + ? pickerListItemOuterEdgeInsets + : other.pickerListItemOuterEdgeInsets, + pickerListItemBorderRadius: t < 0.5 + ? pickerListItemBorderRadius + : other.pickerListItemBorderRadius, + pickerListItemSelectedColor: Color.lerp( + pickerListItemSelectedColor, other.pickerListItemSelectedColor, t)!, + pickerListItemUnselectedColor: Color.lerp(pickerListItemUnselectedColor, + other.pickerListItemUnselectedColor, t)!, + pickerListItemTextStyle: TextStyle.lerp( + pickerListItemTextStyle, other.pickerListItemTextStyle, t)!, captionBold: TextStyle.lerp(captionBold, other.captionBold, t)!, - checkCircleIcon: t < 0.5 ? checkCircleIcon : other.checkCircleIcon, - checkIcon: t < 0.5 ? checkIcon : other.checkIcon, - closeIcon: t < 0.5 ? closeIcon : other.closeIcon, - dangerIcon: t < 0.5 ? dangerIcon : other.dangerIcon, - darkBlue: Color.lerp(darkBlue, other.darkBlue, t)!, - darkGreen: Color.lerp(darkGreen, other.darkGreen, t)!, + textButtonTextStyle: + TextStyle.lerp(textButtonTextStyle, other.textButtonTextStyle, t)!, + errorCardIconColor: + Color.lerp(errorCardIconColor, other.errorCardIconColor, t)!, + errorCardBackgroundColor: Color.lerp( + errorCardBackgroundColor, other.errorCardBackgroundColor, t)!, + lightRed: Color.lerp(lightRed, other.lightRed, t)!, + blueLight: Color.lerp(blueLight, other.blueLight, t)!, + greenLight: Color.lerp(greenLight, other.greenLight, t)!, + errorCardTextColor: + Color.lerp(errorCardTextColor, other.errorCardTextColor, t)!, + bottomSheetBarrierColor: Color.lerp( + bottomSheetBarrierColor, other.bottomSheetBarrierColor, t)!, + messagePanelBackgroundColor: Color.lerp( + messagePanelBackgroundColor, other.messagePanelBackgroundColor, t)!, + bottomSheetLineColor: + Color.lerp(bottomSheetLineColor, other.bottomSheetLineColor, t)!, + bottomSheetBackgroundColor: Color.lerp( + bottomSheetBackgroundColor, other.bottomSheetBackgroundColor, t)!, + bottomSheetBorderColor: + Color.lerp(bottomSheetBorderColor, other.bottomSheetBorderColor, t)!, + loadingIndicatorColor: + Color.lerp(loadingIndicatorColor, other.loadingIndicatorColor, t)!, descriptionBold: TextStyle.lerp(descriptionBold, other.descriptionBold, t)!, + titleBold: TextStyle.lerp(titleBold, other.titleBold, t)!, descriptionThin: TextStyle.lerp(descriptionThin, other.descriptionThin, t)!, - disabledButtonTextColor: Color.lerp( - disabledButtonTextColor, other.disabledButtonTextColor, t)!, + errorTitle: TextStyle.lerp(errorTitle, other.errorTitle, t)!, disabledFilledButtonBackgroundColor: Color.lerp( disabledFilledButtonBackgroundColor, other.disabledFilledButtonBackgroundColor, t)!, - educateIcon: t < 0.5 ? educateIcon : other.educateIcon, - elevatedButtonBackgroundColor: Color.lerp(elevatedButtonBackgroundColor, - other.elevatedButtonBackgroundColor, t)!, - errorCardBackgroundColor: Color.lerp( - errorCardBackgroundColor, other.errorCardBackgroundColor, t)!, - errorCardIconColor: - Color.lerp(errorCardIconColor, other.errorCardIconColor, t)!, - errorCardTextColor: - Color.lerp(errorCardTextColor, other.errorCardTextColor, t)!, - errorModalContentTitleInsets: t < 0.5 - ? errorModalContentTitleInsets - : other.errorModalContentTitleInsets, - errorTitle: TextStyle.lerp(errorTitle, other.errorTitle, t)!, filledButtonBackgroundColorDisabled: Color.lerp( filledButtonBackgroundColorDisabled, other.filledButtonBackgroundColorDisabled, @@ -942,408 +510,382 @@ class WidgetToolkitTheme extends ThemeExtension { t)!, filledButtonTextColorDisabled: Color.lerp(filledButtonTextColorDisabled, other.filledButtonTextColorDisabled, t)!, + textButtonTextColorDisabled: Color.lerp( + textButtonTextColorDisabled, other.textButtonTextColorDisabled, t)!, + textButtonBackgroundColor: Color.lerp( + textButtonBackgroundColor, other.textButtonBackgroundColor, t)!, filledButtonTextColorEnabled: Color.lerp( filledButtonTextColorEnabled, other.filledButtonTextColorEnabled, t)!, - greatNewsIcon: t < 0.5 ? greatNewsIcon : other.greatNewsIcon, - greenLight: Color.lerp(greenLight, other.greenLight, t)!, - highlightColor: Color.lerp(highlightColor, other.highlightColor, t)!, - infoCircleIcon: t < 0.5 ? infoCircleIcon : other.infoCircleIcon, - largeEdgeInsets: t < 0.5 ? largeEdgeInsets : other.largeEdgeInsets, - lightRed: Color.lerp(lightRed, other.lightRed, t)!, - loadingIndicatorColor: - Color.lerp(loadingIndicatorColor, other.loadingIndicatorColor, t)!, - mediumEdgeInsets: t < 0.5 ? mediumEdgeInsets : other.mediumEdgeInsets, - messageIcon: t < 0.5 ? messageIcon : other.messageIcon, - messagePanelBackgroundColor: Color.lerp( - messagePanelBackgroundColor, other.messagePanelBackgroundColor, t)!, - messagePanelEdgeInsets: - t < 0.5 ? messagePanelEdgeInsets : other.messagePanelEdgeInsets, - messagePanelErrorEdgeInsets: t < 0.5 - ? messagePanelErrorEdgeInsets - : other.messagePanelErrorEdgeInsets, + smallButtonBackgroundColor: Color.lerp( + smallButtonBackgroundColor, other.smallButtonBackgroundColor, t)!, + buttonTextColor: Color.lerp(buttonTextColor, other.buttonTextColor, t)!, + shimmerBaseColor: + Color.lerp(shimmerBaseColor, other.shimmerBaseColor, t)!, + shimmerHighlightColor: + Color.lerp(shimmerHighlightColor, other.shimmerHighlightColor, t)!, + white: Color.lerp(white, other.white, t)!, + buttonBlueGradientEnd: + Color.lerp(buttonBlueGradientEnd, other.buttonBlueGradientEnd, t)!, + elevatedButtonBackgroundColor: Color.lerp(elevatedButtonBackgroundColor, + other.elevatedButtonBackgroundColor, t)!, + textColorWhite: Color.lerp(textColorWhite, other.textColorWhite, t)!, + bodyTextColor2: Color.lerp(bodyTextColor2, other.bodyTextColor2, t)!, + smallButtonFilledBackgroundColor: Color.lerp( + smallButtonFilledBackgroundColor, + other.smallButtonFilledBackgroundColor, + t)!, + smallButtonOutlinedBorderColor: Color.lerp(smallButtonOutlinedBorderColor, + other.smallButtonOutlinedBorderColor, t)!, + activeButtonLanguageTextColor: Color.lerp(activeButtonLanguageTextColor, + other.activeButtonLanguageTextColor, t)!, + activeButtonTextColor: + Color.lerp(activeButtonTextColor, other.activeButtonTextColor, t)!, + disabledButtonTextColor: Color.lerp( + disabledButtonTextColor, other.disabledButtonTextColor, t)!, + black: Color.lerp(black, other.black, t)!, + activeGradientColorStart: Color.lerp( + activeGradientColorStart, other.activeGradientColorStart, t)!, + activeGradientColorEnd: + Color.lerp(activeGradientColorEnd, other.activeGradientColorEnd, t)!, + boxShadowColor: Color.lerp(boxShadowColor, other.boxShadowColor, t)!, + red: Color.lerp(red, other.red, t)!, orange: Color.lerp(orange, other.orange, t)!, orangeLight: Color.lerp(orangeLight, other.orangeLight, t)!, - outlineButtonBackgroundColor: Color.lerp( - outlineButtonBackgroundColor, other.outlineButtonBackgroundColor, t)!, - outlineButtonBorderColor: Color.lerp( - outlineButtonBorderColor, other.outlineButtonBorderColor, t)!, + darkBlue: Color.lerp(darkBlue, other.darkBlue, t)!, + darkGreen: Color.lerp(darkGreen, other.darkGreen, t)!, + textButtonLoadingIndicatorColor: Color.lerp( + textButtonLoadingIndicatorColor, + other.textButtonLoadingIndicatorColor, + t)!, + buttonShadowColor: + Color.lerp(buttonShadowColor, other.buttonShadowColor, t)!, + buttonPressedColor: + Color.lerp(buttonPressedColor, other.buttonPressedColor, t)!, + buttonBorderColor: + Color.lerp(buttonBorderColor, other.buttonBorderColor, t)!, outlineButtonContentPadding: t < 0.5 ? outlineButtonContentPadding : other.outlineButtonContentPadding, + outlineButtonTextStyle: TextStyle.lerp( + outlineButtonTextStyle, other.outlineButtonTextStyle, t)!, outlineButtonDescriptionTextStyle: TextStyle.lerp( outlineButtonDescriptionTextStyle, other.outlineButtonDescriptionTextStyle, t)!, + outlineButtonBackgroundColor: Color.lerp( + outlineButtonBackgroundColor, other.outlineButtonBackgroundColor, t)!, outlineButtonForegroundColor: Color.lerp( outlineButtonForegroundColor, other.outlineButtonForegroundColor, t)!, + outlineButtonBorderColor: Color.lerp( + outlineButtonBorderColor, other.outlineButtonBorderColor, t)!, outlineButtonPressedColor: Color.lerp( outlineButtonPressedColor, other.outlineButtonPressedColor, t)!, outlineButtonTextColor: Color.lerp(outlineButtonTextColor, other.outlineButtonTextColor, t)!, outlineButtonTextColorDisabled: Color.lerp(outlineButtonTextColorDisabled, other.outlineButtonTextColorDisabled, t)!, - outlineButtonTextStyle: TextStyle.lerp( - outlineButtonTextStyle, other.outlineButtonTextStyle, t)!, - pickerListItemBorderRadius: t < 0.5 - ? pickerListItemBorderRadius - : other.pickerListItemBorderRadius, - pickerListItemInnerEdgeInsets: t < 0.5 - ? pickerListItemInnerEdgeInsets - : other.pickerListItemInnerEdgeInsets, - pickerListItemOuterEdgeInsets: t < 0.5 - ? pickerListItemOuterEdgeInsets - : other.pickerListItemOuterEdgeInsets, - pickerListItemSelectedColor: Color.lerp( - pickerListItemSelectedColor, other.pickerListItemSelectedColor, t)!, - pickerListItemTextStyle: TextStyle.lerp( - pickerListItemTextStyle, other.pickerListItemTextStyle, t)!, - pickerListItemUnselectedColor: Color.lerp(pickerListItemUnselectedColor, - other.pickerListItemUnselectedColor, t)!, - primaryColor: Color.lerp(primaryColor, other.primaryColor, t)!, - primaryGradientEnd: - Color.lerp(primaryGradientEnd, other.primaryGradientEnd, t)!, - primaryGradientStart: - Color.lerp(primaryGradientStart, other.primaryGradientStart, t)!, - red: Color.lerp(red, other.red, t)!, - scaffoldBackgroundColor: Color.lerp( - scaffoldBackgroundColor, other.scaffoldBackgroundColor, t)!, - searchTextFieldBackgroundColor: Color.lerp(searchTextFieldBackgroundColor, - other.searchTextFieldBackgroundColor, t)!, - searchTextFieldBackgroundColorActive: Color.lerp( - searchTextFieldBackgroundColorActive, - other.searchTextFieldBackgroundColorActive, - t)!, - searchTextFieldBorderRadius: t < 0.5 - ? searchTextFieldBorderRadius - : other.searchTextFieldBorderRadius, - searchTextFieldBorderType: - t < 0.5 ? searchTextFieldBorderType : other.searchTextFieldBorderType, - searchTextFieldHintStyle: TextStyle.lerp( - searchTextFieldHintStyle, other.searchTextFieldHintStyle, t)!, - searchTextFieldIconColor: Color.lerp( - searchTextFieldIconColor, other.searchTextFieldIconColor, t)!, - searchTextFieldIconColorActive: Color.lerp(searchTextFieldIconColorActive, - other.searchTextFieldIconColorActive, t)!, - searchTextFieldIconEdgeInsets: t < 0.5 - ? searchTextFieldIconEdgeInsets - : other.searchTextFieldIconEdgeInsets, - searchTextFieldTextStyle: TextStyle.lerp( - searchTextFieldTextStyle, other.searchTextFieldTextStyle, t)!, - shimmerBaseColor: - Color.lerp(shimmerBaseColor, other.shimmerBaseColor, t)!, - shimmerHighlightColor: - Color.lerp(shimmerHighlightColor, other.shimmerHighlightColor, t)!, - smallButtonBackgroundColor: Color.lerp( - smallButtonBackgroundColor, other.smallButtonBackgroundColor, t)!, - smallButtonFilledBackgroundColor: Color.lerp( - smallButtonFilledBackgroundColor, - other.smallButtonFilledBackgroundColor, - t)!, - smallButtonOutlinedBorderColor: Color.lerp(smallButtonOutlinedBorderColor, - other.smallButtonOutlinedBorderColor, t)!, + bottomSheetHeaderPadding: + t < 0.5 ? bottomSheetHeaderPadding : other.bottomSheetHeaderPadding, + bottomSheetCloseButtonPadding: t < 0.5 + ? bottomSheetCloseButtonPadding + : other.bottomSheetCloseButtonPadding, + bottomSheetContentPadding: + t < 0.5 ? bottomSheetContentPadding : other.bottomSheetContentPadding, + messagePanelErrorEdgeInsets: t < 0.5 + ? messagePanelErrorEdgeInsets + : other.messagePanelErrorEdgeInsets, + errorModalContentTitleInsets: t < 0.5 + ? errorModalContentTitleInsets + : other.errorModalContentTitleInsets, smallEdgeInsets: t < 0.5 ? smallEdgeInsets : other.smallEdgeInsets, - spacingL: t < 0.5 ? spacingL : other.spacingL, - spacingM: t < 0.5 ? spacingM : other.spacingM, - spacingS: t < 0.5 ? spacingS : other.spacingS, - spacingXL: t < 0.5 ? spacingXL : other.spacingXL, - spacingXS: t < 0.5 ? spacingXS : other.spacingXS, + mediumEdgeInsets: t < 0.5 ? mediumEdgeInsets : other.mediumEdgeInsets, + largeEdgeInsets: t < 0.5 ? largeEdgeInsets : other.largeEdgeInsets, + messagePanelEdgeInsets: + t < 0.5 ? messagePanelEdgeInsets : other.messagePanelEdgeInsets, spacingXS1: t < 0.5 ? spacingXS1 : other.spacingXS1, + spacingXS: t < 0.5 ? spacingXS : other.spacingXS, spacingXSS: t < 0.5 ? spacingXSS : other.spacingXSS, + spacingS: t < 0.5 ? spacingS : other.spacingS, + spacingM: t < 0.5 ? spacingM : other.spacingM, + spacingL: t < 0.5 ? spacingL : other.spacingL, + spacingXL: t < 0.5 ? spacingXL : other.spacingXL, spacingXXL: t < 0.5 ? spacingXXL : other.spacingXXL, spacingXXXXL1: t < 0.5 ? spacingXXXXL1 : other.spacingXXXXL1, - textButtonBackgroundColor: Color.lerp( - textButtonBackgroundColor, other.textButtonBackgroundColor, t)!, textButtonIconRightPadding: t < 0.5 ? textButtonIconRightPadding : other.textButtonIconRightPadding, - textButtonLoadingIndicatorColor: Color.lerp( - textButtonLoadingIndicatorColor, - other.textButtonLoadingIndicatorColor, - t)!, textButtonPadding: t < 0.5 ? textButtonPadding : other.textButtonPadding, - textButtonTextColorDisabled: Color.lerp( - textButtonTextColorDisabled, other.textButtonTextColorDisabled, t)!, - textButtonTextStyle: - TextStyle.lerp(textButtonTextStyle, other.textButtonTextStyle, t)!, - textColorWhite: Color.lerp(textColorWhite, other.textColorWhite, t)!, - titleBold: TextStyle.lerp(titleBold, other.titleBold, t)!, - white: Color.lerp(white, other.white, t)!, + appBarTextButtonPadding: + t < 0.5 ? appBarTextButtonPadding : other.appBarTextButtonPadding, + bottomSheetBottomPadding: + t < 0.5 ? bottomSheetBottomPadding : other.bottomSheetBottomPadding, + checkIcon: t < 0.5 ? checkIcon : other.checkIcon, + checkCircleIcon: t < 0.5 ? checkCircleIcon : other.checkCircleIcon, + closeIcon: t < 0.5 ? closeIcon : other.closeIcon, + dangerIcon: t < 0.5 ? dangerIcon : other.dangerIcon, + educateIcon: t < 0.5 ? educateIcon : other.educateIcon, + greatNewsIcon: t < 0.5 ? greatNewsIcon : other.greatNewsIcon, + infoCircleIcon: t < 0.5 ? infoCircleIcon : other.infoCircleIcon, + messageIcon: t < 0.5 ? messageIcon : other.messageIcon, ); } @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && - other is WidgetToolkitTheme && - const DeepCollectionEquality().equals(activeButtonLanguageTextColor, - other.activeButtonLanguageTextColor) && - const DeepCollectionEquality() - .equals(activeButtonTextColor, other.activeButtonTextColor) && - const DeepCollectionEquality() - .equals(activeGradientColorEnd, other.activeGradientColorEnd) && - const DeepCollectionEquality().equals( - activeGradientColorStart, other.activeGradientColorStart) && - const DeepCollectionEquality().equals( - appBarTextButtonPadding, other.appBarTextButtonPadding) && - const DeepCollectionEquality() - .equals(backgroundColor, other.backgroundColor) && - const DeepCollectionEquality().equals(black, other.black) && - const DeepCollectionEquality().equals(blueLight, other.blueLight) && - const DeepCollectionEquality() - .equals(bodyTextColor2, other.bodyTextColor2) && - const DeepCollectionEquality().equals( - bottomSheetBackgroundColor, other.bottomSheetBackgroundColor) && - const DeepCollectionEquality().equals( - bottomSheetBarrierColor, other.bottomSheetBarrierColor) && - const DeepCollectionEquality() - .equals(bottomSheetBorderColor, other.bottomSheetBorderColor) && - const DeepCollectionEquality().equals( - bottomSheetBottomPadding, other.bottomSheetBottomPadding) && - const DeepCollectionEquality().equals(bottomSheetCloseButtonPadding, - other.bottomSheetCloseButtonPadding) && - const DeepCollectionEquality().equals( - bottomSheetContentPadding, other.bottomSheetContentPadding) && - const DeepCollectionEquality().equals( - bottomSheetHeaderPadding, other.bottomSheetHeaderPadding) && - const DeepCollectionEquality() - .equals(bottomSheetLineColor, other.bottomSheetLineColor) && - const DeepCollectionEquality() - .equals(boxShadowColor, other.boxShadowColor) && - const DeepCollectionEquality() - .equals(buttonBlueGradientEnd, other.buttonBlueGradientEnd) && - const DeepCollectionEquality() - .equals(buttonBorderColor, other.buttonBorderColor) && - const DeepCollectionEquality() - .equals(buttonPressedColor, other.buttonPressedColor) && - const DeepCollectionEquality() - .equals(buttonShadowColor, other.buttonShadowColor) && - const DeepCollectionEquality() - .equals(buttonTextColor, other.buttonTextColor) && - const DeepCollectionEquality() - .equals(captionBold, other.captionBold) && - const DeepCollectionEquality() - .equals(checkCircleIcon, other.checkCircleIcon) && - const DeepCollectionEquality().equals(checkIcon, other.checkIcon) && - const DeepCollectionEquality().equals(closeIcon, other.closeIcon) && - const DeepCollectionEquality() - .equals(dangerIcon, other.dangerIcon) && - const DeepCollectionEquality().equals(darkBlue, other.darkBlue) && - const DeepCollectionEquality().equals(darkGreen, other.darkGreen) && - const DeepCollectionEquality() - .equals(descriptionBold, other.descriptionBold) && + (other.runtimeType == runtimeType && + other is WidgetToolkitTheme && const DeepCollectionEquality() - .equals(descriptionThin, other.descriptionThin) && - const DeepCollectionEquality().equals( - disabledButtonTextColor, other.disabledButtonTextColor) && - const DeepCollectionEquality().equals( - disabledFilledButtonBackgroundColor, - other.disabledFilledButtonBackgroundColor) && + .equals(primaryColor, other.primaryColor) && const DeepCollectionEquality() - .equals(educateIcon, other.educateIcon) && - const DeepCollectionEquality().equals(elevatedButtonBackgroundColor, - other.elevatedButtonBackgroundColor) && + .equals(backgroundColor, other.backgroundColor) && const DeepCollectionEquality().equals( - errorCardBackgroundColor, other.errorCardBackgroundColor) && + scaffoldBackgroundColor, other.scaffoldBackgroundColor) && const DeepCollectionEquality() - .equals(errorCardIconColor, other.errorCardIconColor) && + .equals(highlightColor, other.highlightColor) && const DeepCollectionEquality() - .equals(errorCardTextColor, other.errorCardTextColor) && - const DeepCollectionEquality().equals(errorModalContentTitleInsets, - other.errorModalContentTitleInsets) && + .equals(primaryGradientStart, other.primaryGradientStart) && const DeepCollectionEquality() - .equals(errorTitle, other.errorTitle) && + .equals(primaryGradientEnd, other.primaryGradientEnd) && + const DeepCollectionEquality().equals( + searchTextFieldIconColor, other.searchTextFieldIconColor) && + const DeepCollectionEquality().equals( + searchTextFieldIconColorActive, + other.searchTextFieldIconColorActive) && + const DeepCollectionEquality().equals( + searchTextFieldBackgroundColor, + other.searchTextFieldBackgroundColor) && const DeepCollectionEquality().equals( - filledButtonBackgroundColorDisabled, - other.filledButtonBackgroundColorDisabled) && + searchTextFieldBackgroundColorActive, + other.searchTextFieldBackgroundColorActive) && + const DeepCollectionEquality().equals(searchTextFieldBorderRadius, + other.searchTextFieldBorderRadius) && + const DeepCollectionEquality().equals( + searchTextFieldBorderType, other.searchTextFieldBorderType) && + const DeepCollectionEquality().equals(searchTextFieldIconEdgeInsets, + other.searchTextFieldIconEdgeInsets) && + const DeepCollectionEquality().equals( + searchTextFieldHintStyle, other.searchTextFieldHintStyle) && + const DeepCollectionEquality().equals( + searchTextFieldTextStyle, other.searchTextFieldTextStyle) && + const DeepCollectionEquality().equals(pickerListItemInnerEdgeInsets, + other.pickerListItemInnerEdgeInsets) && + const DeepCollectionEquality().equals(pickerListItemOuterEdgeInsets, + other.pickerListItemOuterEdgeInsets) && + const DeepCollectionEquality().equals( + pickerListItemBorderRadius, other.pickerListItemBorderRadius) && + const DeepCollectionEquality().equals(pickerListItemSelectedColor, other.pickerListItemSelectedColor) && + const DeepCollectionEquality().equals(pickerListItemUnselectedColor, other.pickerListItemUnselectedColor) && + const DeepCollectionEquality().equals(pickerListItemTextStyle, other.pickerListItemTextStyle) && + const DeepCollectionEquality().equals(captionBold, other.captionBold) && + const DeepCollectionEquality().equals(textButtonTextStyle, other.textButtonTextStyle) && + const DeepCollectionEquality().equals(errorCardIconColor, other.errorCardIconColor) && + const DeepCollectionEquality().equals(errorCardBackgroundColor, other.errorCardBackgroundColor) && + const DeepCollectionEquality().equals(lightRed, other.lightRed) && + const DeepCollectionEquality().equals(blueLight, other.blueLight) && + const DeepCollectionEquality().equals(greenLight, other.greenLight) && + const DeepCollectionEquality().equals(errorCardTextColor, other.errorCardTextColor) && + const DeepCollectionEquality().equals(bottomSheetBarrierColor, other.bottomSheetBarrierColor) && + const DeepCollectionEquality().equals(messagePanelBackgroundColor, other.messagePanelBackgroundColor) && + const DeepCollectionEquality().equals(bottomSheetLineColor, other.bottomSheetLineColor) && + const DeepCollectionEquality().equals(bottomSheetBackgroundColor, other.bottomSheetBackgroundColor) && + const DeepCollectionEquality().equals(bottomSheetBorderColor, other.bottomSheetBorderColor) && + const DeepCollectionEquality().equals(loadingIndicatorColor, other.loadingIndicatorColor) && + const DeepCollectionEquality().equals(descriptionBold, other.descriptionBold) && + const DeepCollectionEquality().equals(titleBold, other.titleBold) && + const DeepCollectionEquality().equals(descriptionThin, other.descriptionThin) && + const DeepCollectionEquality().equals(errorTitle, other.errorTitle) && + const DeepCollectionEquality().equals(disabledFilledButtonBackgroundColor, other.disabledFilledButtonBackgroundColor) && + const DeepCollectionEquality().equals(filledButtonBackgroundColorDisabled, other.filledButtonBackgroundColorDisabled) && const DeepCollectionEquality().equals(filledButtonBackgroundColorPressed, other.filledButtonBackgroundColorPressed) && const DeepCollectionEquality().equals(filledButtonTextColorDisabled, other.filledButtonTextColorDisabled) && + const DeepCollectionEquality().equals(textButtonTextColorDisabled, other.textButtonTextColorDisabled) && + const DeepCollectionEquality().equals(textButtonBackgroundColor, other.textButtonBackgroundColor) && const DeepCollectionEquality().equals(filledButtonTextColorEnabled, other.filledButtonTextColorEnabled) && - const DeepCollectionEquality().equals(greatNewsIcon, other.greatNewsIcon) && - const DeepCollectionEquality().equals(greenLight, other.greenLight) && - const DeepCollectionEquality().equals(highlightColor, other.highlightColor) && - const DeepCollectionEquality().equals(infoCircleIcon, other.infoCircleIcon) && - const DeepCollectionEquality().equals(largeEdgeInsets, other.largeEdgeInsets) && - const DeepCollectionEquality().equals(lightRed, other.lightRed) && - const DeepCollectionEquality().equals(loadingIndicatorColor, other.loadingIndicatorColor) && - const DeepCollectionEquality().equals(mediumEdgeInsets, other.mediumEdgeInsets) && - const DeepCollectionEquality().equals(messageIcon, other.messageIcon) && - const DeepCollectionEquality().equals(messagePanelBackgroundColor, other.messagePanelBackgroundColor) && - const DeepCollectionEquality().equals(messagePanelEdgeInsets, other.messagePanelEdgeInsets) && - const DeepCollectionEquality().equals(messagePanelErrorEdgeInsets, other.messagePanelErrorEdgeInsets) && + const DeepCollectionEquality().equals(smallButtonBackgroundColor, other.smallButtonBackgroundColor) && + const DeepCollectionEquality().equals(buttonTextColor, other.buttonTextColor) && + const DeepCollectionEquality().equals(shimmerBaseColor, other.shimmerBaseColor) && + const DeepCollectionEquality().equals(shimmerHighlightColor, other.shimmerHighlightColor) && + const DeepCollectionEquality().equals(white, other.white) && + const DeepCollectionEquality().equals(buttonBlueGradientEnd, other.buttonBlueGradientEnd) && + const DeepCollectionEquality().equals(elevatedButtonBackgroundColor, other.elevatedButtonBackgroundColor) && + const DeepCollectionEquality().equals(textColorWhite, other.textColorWhite) && + const DeepCollectionEquality().equals(bodyTextColor2, other.bodyTextColor2) && + const DeepCollectionEquality().equals(smallButtonFilledBackgroundColor, other.smallButtonFilledBackgroundColor) && + const DeepCollectionEquality().equals(smallButtonOutlinedBorderColor, other.smallButtonOutlinedBorderColor) && + const DeepCollectionEquality().equals(activeButtonLanguageTextColor, other.activeButtonLanguageTextColor) && + const DeepCollectionEquality().equals(activeButtonTextColor, other.activeButtonTextColor) && + const DeepCollectionEquality().equals(disabledButtonTextColor, other.disabledButtonTextColor) && + const DeepCollectionEquality().equals(black, other.black) && + const DeepCollectionEquality().equals(activeGradientColorStart, other.activeGradientColorStart) && + const DeepCollectionEquality().equals(activeGradientColorEnd, other.activeGradientColorEnd) && + const DeepCollectionEquality().equals(boxShadowColor, other.boxShadowColor) && + const DeepCollectionEquality().equals(red, other.red) && const DeepCollectionEquality().equals(orange, other.orange) && const DeepCollectionEquality().equals(orangeLight, other.orangeLight) && - const DeepCollectionEquality().equals(outlineButtonBackgroundColor, other.outlineButtonBackgroundColor) && - const DeepCollectionEquality().equals(outlineButtonBorderColor, other.outlineButtonBorderColor) && + const DeepCollectionEquality().equals(darkBlue, other.darkBlue) && + const DeepCollectionEquality().equals(darkGreen, other.darkGreen) && + const DeepCollectionEquality().equals(textButtonLoadingIndicatorColor, other.textButtonLoadingIndicatorColor) && + const DeepCollectionEquality().equals(buttonShadowColor, other.buttonShadowColor) && + const DeepCollectionEquality().equals(buttonPressedColor, other.buttonPressedColor) && + const DeepCollectionEquality().equals(buttonBorderColor, other.buttonBorderColor) && const DeepCollectionEquality().equals(outlineButtonContentPadding, other.outlineButtonContentPadding) && + const DeepCollectionEquality().equals(outlineButtonTextStyle, other.outlineButtonTextStyle) && const DeepCollectionEquality().equals(outlineButtonDescriptionTextStyle, other.outlineButtonDescriptionTextStyle) && + const DeepCollectionEquality().equals(outlineButtonBackgroundColor, other.outlineButtonBackgroundColor) && const DeepCollectionEquality().equals(outlineButtonForegroundColor, other.outlineButtonForegroundColor) && + const DeepCollectionEquality().equals(outlineButtonBorderColor, other.outlineButtonBorderColor) && const DeepCollectionEquality().equals(outlineButtonPressedColor, other.outlineButtonPressedColor) && const DeepCollectionEquality().equals(outlineButtonTextColor, other.outlineButtonTextColor) && const DeepCollectionEquality().equals(outlineButtonTextColorDisabled, other.outlineButtonTextColorDisabled) && - const DeepCollectionEquality().equals(outlineButtonTextStyle, other.outlineButtonTextStyle) && - const DeepCollectionEquality().equals(pickerListItemBorderRadius, other.pickerListItemBorderRadius) && - const DeepCollectionEquality().equals(pickerListItemInnerEdgeInsets, other.pickerListItemInnerEdgeInsets) && - const DeepCollectionEquality().equals(pickerListItemOuterEdgeInsets, other.pickerListItemOuterEdgeInsets) && - const DeepCollectionEquality().equals(pickerListItemSelectedColor, other.pickerListItemSelectedColor) && - const DeepCollectionEquality().equals(pickerListItemTextStyle, other.pickerListItemTextStyle) && - const DeepCollectionEquality().equals(pickerListItemUnselectedColor, other.pickerListItemUnselectedColor) && - const DeepCollectionEquality().equals(primaryColor, other.primaryColor) && - const DeepCollectionEquality().equals(primaryGradientEnd, other.primaryGradientEnd) && - const DeepCollectionEquality().equals(primaryGradientStart, other.primaryGradientStart) && - const DeepCollectionEquality().equals(red, other.red) && - const DeepCollectionEquality().equals(scaffoldBackgroundColor, other.scaffoldBackgroundColor) && - const DeepCollectionEquality().equals(searchTextFieldBackgroundColor, other.searchTextFieldBackgroundColor) && - const DeepCollectionEquality().equals(searchTextFieldBackgroundColorActive, other.searchTextFieldBackgroundColorActive) && - const DeepCollectionEquality().equals(searchTextFieldBorderRadius, other.searchTextFieldBorderRadius) && - const DeepCollectionEquality().equals(searchTextFieldBorderType, other.searchTextFieldBorderType) && - const DeepCollectionEquality().equals(searchTextFieldHintStyle, other.searchTextFieldHintStyle) && - const DeepCollectionEquality().equals(searchTextFieldIconColor, other.searchTextFieldIconColor) && - const DeepCollectionEquality().equals(searchTextFieldIconColorActive, other.searchTextFieldIconColorActive) && - const DeepCollectionEquality().equals(searchTextFieldIconEdgeInsets, other.searchTextFieldIconEdgeInsets) && - const DeepCollectionEquality().equals(searchTextFieldTextStyle, other.searchTextFieldTextStyle) && - const DeepCollectionEquality().equals(shimmerBaseColor, other.shimmerBaseColor) && - const DeepCollectionEquality().equals(shimmerHighlightColor, other.shimmerHighlightColor) && - const DeepCollectionEquality().equals(smallButtonBackgroundColor, other.smallButtonBackgroundColor) && - const DeepCollectionEquality().equals(smallButtonFilledBackgroundColor, other.smallButtonFilledBackgroundColor) && - const DeepCollectionEquality().equals(smallButtonOutlinedBorderColor, other.smallButtonOutlinedBorderColor) && + const DeepCollectionEquality().equals(bottomSheetHeaderPadding, other.bottomSheetHeaderPadding) && + const DeepCollectionEquality().equals(bottomSheetCloseButtonPadding, other.bottomSheetCloseButtonPadding) && + const DeepCollectionEquality().equals(bottomSheetContentPadding, other.bottomSheetContentPadding) && + const DeepCollectionEquality().equals(messagePanelErrorEdgeInsets, other.messagePanelErrorEdgeInsets) && + const DeepCollectionEquality().equals(errorModalContentTitleInsets, other.errorModalContentTitleInsets) && const DeepCollectionEquality().equals(smallEdgeInsets, other.smallEdgeInsets) && - const DeepCollectionEquality().equals(spacingL, other.spacingL) && - const DeepCollectionEquality().equals(spacingM, other.spacingM) && - const DeepCollectionEquality().equals(spacingS, other.spacingS) && - const DeepCollectionEquality().equals(spacingXL, other.spacingXL) && - const DeepCollectionEquality().equals(spacingXS, other.spacingXS) && + const DeepCollectionEquality().equals(mediumEdgeInsets, other.mediumEdgeInsets) && + const DeepCollectionEquality().equals(largeEdgeInsets, other.largeEdgeInsets) && + const DeepCollectionEquality().equals(messagePanelEdgeInsets, other.messagePanelEdgeInsets) && const DeepCollectionEquality().equals(spacingXS1, other.spacingXS1) && + const DeepCollectionEquality().equals(spacingXS, other.spacingXS) && const DeepCollectionEquality().equals(spacingXSS, other.spacingXSS) && + const DeepCollectionEquality().equals(spacingS, other.spacingS) && + const DeepCollectionEquality().equals(spacingM, other.spacingM) && + const DeepCollectionEquality().equals(spacingL, other.spacingL) && + const DeepCollectionEquality().equals(spacingXL, other.spacingXL) && const DeepCollectionEquality().equals(spacingXXL, other.spacingXXL) && const DeepCollectionEquality().equals(spacingXXXXL1, other.spacingXXXXL1) && - const DeepCollectionEquality().equals(textButtonBackgroundColor, other.textButtonBackgroundColor) && const DeepCollectionEquality().equals(textButtonIconRightPadding, other.textButtonIconRightPadding) && - const DeepCollectionEquality().equals(textButtonLoadingIndicatorColor, other.textButtonLoadingIndicatorColor) && const DeepCollectionEquality().equals(textButtonPadding, other.textButtonPadding) && - const DeepCollectionEquality().equals(textButtonTextColorDisabled, other.textButtonTextColorDisabled) && - const DeepCollectionEquality().equals(textButtonTextStyle, other.textButtonTextStyle) && - const DeepCollectionEquality().equals(textColorWhite, other.textColorWhite) && - const DeepCollectionEquality().equals(titleBold, other.titleBold) && - const DeepCollectionEquality().equals(white, other.white)); + const DeepCollectionEquality().equals(appBarTextButtonPadding, other.appBarTextButtonPadding) && + const DeepCollectionEquality().equals(bottomSheetBottomPadding, other.bottomSheetBottomPadding) && + const DeepCollectionEquality().equals(checkIcon, other.checkIcon) && + const DeepCollectionEquality().equals(checkCircleIcon, other.checkCircleIcon) && + const DeepCollectionEquality().equals(closeIcon, other.closeIcon) && + const DeepCollectionEquality().equals(dangerIcon, other.dangerIcon) && + const DeepCollectionEquality().equals(educateIcon, other.educateIcon) && + const DeepCollectionEquality().equals(greatNewsIcon, other.greatNewsIcon) && + const DeepCollectionEquality().equals(infoCircleIcon, other.infoCircleIcon) && + const DeepCollectionEquality().equals(messageIcon, other.messageIcon)); } @override int get hashCode { return Object.hashAll([ runtimeType.hashCode, - const DeepCollectionEquality().hash(activeButtonLanguageTextColor), - const DeepCollectionEquality().hash(activeButtonTextColor), - const DeepCollectionEquality().hash(activeGradientColorEnd), - const DeepCollectionEquality().hash(activeGradientColorStart), - const DeepCollectionEquality().hash(appBarTextButtonPadding), + const DeepCollectionEquality().hash(primaryColor), const DeepCollectionEquality().hash(backgroundColor), - const DeepCollectionEquality().hash(black), + const DeepCollectionEquality().hash(scaffoldBackgroundColor), + const DeepCollectionEquality().hash(highlightColor), + const DeepCollectionEquality().hash(primaryGradientStart), + const DeepCollectionEquality().hash(primaryGradientEnd), + const DeepCollectionEquality().hash(searchTextFieldIconColor), + const DeepCollectionEquality().hash(searchTextFieldIconColorActive), + const DeepCollectionEquality().hash(searchTextFieldBackgroundColor), + const DeepCollectionEquality().hash(searchTextFieldBackgroundColorActive), + const DeepCollectionEquality().hash(searchTextFieldBorderRadius), + const DeepCollectionEquality().hash(searchTextFieldBorderType), + const DeepCollectionEquality().hash(searchTextFieldIconEdgeInsets), + const DeepCollectionEquality().hash(searchTextFieldHintStyle), + const DeepCollectionEquality().hash(searchTextFieldTextStyle), + const DeepCollectionEquality().hash(pickerListItemInnerEdgeInsets), + const DeepCollectionEquality().hash(pickerListItemOuterEdgeInsets), + const DeepCollectionEquality().hash(pickerListItemBorderRadius), + const DeepCollectionEquality().hash(pickerListItemSelectedColor), + const DeepCollectionEquality().hash(pickerListItemUnselectedColor), + const DeepCollectionEquality().hash(pickerListItemTextStyle), + const DeepCollectionEquality().hash(captionBold), + const DeepCollectionEquality().hash(textButtonTextStyle), + const DeepCollectionEquality().hash(errorCardIconColor), + const DeepCollectionEquality().hash(errorCardBackgroundColor), + const DeepCollectionEquality().hash(lightRed), const DeepCollectionEquality().hash(blueLight), - const DeepCollectionEquality().hash(bodyTextColor2), - const DeepCollectionEquality().hash(bottomSheetBackgroundColor), + const DeepCollectionEquality().hash(greenLight), + const DeepCollectionEquality().hash(errorCardTextColor), const DeepCollectionEquality().hash(bottomSheetBarrierColor), - const DeepCollectionEquality().hash(bottomSheetBorderColor), - const DeepCollectionEquality().hash(bottomSheetBottomPadding), - const DeepCollectionEquality().hash(bottomSheetCloseButtonPadding), - const DeepCollectionEquality().hash(bottomSheetContentPadding), - const DeepCollectionEquality().hash(bottomSheetHeaderPadding), + const DeepCollectionEquality().hash(messagePanelBackgroundColor), const DeepCollectionEquality().hash(bottomSheetLineColor), - const DeepCollectionEquality().hash(boxShadowColor), - const DeepCollectionEquality().hash(buttonBlueGradientEnd), - const DeepCollectionEquality().hash(buttonBorderColor), - const DeepCollectionEquality().hash(buttonPressedColor), - const DeepCollectionEquality().hash(buttonShadowColor), - const DeepCollectionEquality().hash(buttonTextColor), - const DeepCollectionEquality().hash(captionBold), - const DeepCollectionEquality().hash(checkCircleIcon), - const DeepCollectionEquality().hash(checkIcon), - const DeepCollectionEquality().hash(closeIcon), - const DeepCollectionEquality().hash(dangerIcon), - const DeepCollectionEquality().hash(darkBlue), - const DeepCollectionEquality().hash(darkGreen), + const DeepCollectionEquality().hash(bottomSheetBackgroundColor), + const DeepCollectionEquality().hash(bottomSheetBorderColor), + const DeepCollectionEquality().hash(loadingIndicatorColor), const DeepCollectionEquality().hash(descriptionBold), + const DeepCollectionEquality().hash(titleBold), const DeepCollectionEquality().hash(descriptionThin), - const DeepCollectionEquality().hash(disabledButtonTextColor), - const DeepCollectionEquality().hash(disabledFilledButtonBackgroundColor), - const DeepCollectionEquality().hash(educateIcon), - const DeepCollectionEquality().hash(elevatedButtonBackgroundColor), - const DeepCollectionEquality().hash(errorCardBackgroundColor), - const DeepCollectionEquality().hash(errorCardIconColor), - const DeepCollectionEquality().hash(errorCardTextColor), - const DeepCollectionEquality().hash(errorModalContentTitleInsets), const DeepCollectionEquality().hash(errorTitle), + const DeepCollectionEquality().hash(disabledFilledButtonBackgroundColor), const DeepCollectionEquality().hash(filledButtonBackgroundColorDisabled), const DeepCollectionEquality().hash(filledButtonBackgroundColorPressed), const DeepCollectionEquality().hash(filledButtonTextColorDisabled), + const DeepCollectionEquality().hash(textButtonTextColorDisabled), + const DeepCollectionEquality().hash(textButtonBackgroundColor), const DeepCollectionEquality().hash(filledButtonTextColorEnabled), - const DeepCollectionEquality().hash(greatNewsIcon), - const DeepCollectionEquality().hash(greenLight), - const DeepCollectionEquality().hash(highlightColor), - const DeepCollectionEquality().hash(infoCircleIcon), - const DeepCollectionEquality().hash(largeEdgeInsets), - const DeepCollectionEquality().hash(lightRed), - const DeepCollectionEquality().hash(loadingIndicatorColor), - const DeepCollectionEquality().hash(mediumEdgeInsets), - const DeepCollectionEquality().hash(messageIcon), - const DeepCollectionEquality().hash(messagePanelBackgroundColor), - const DeepCollectionEquality().hash(messagePanelEdgeInsets), - const DeepCollectionEquality().hash(messagePanelErrorEdgeInsets), + const DeepCollectionEquality().hash(smallButtonBackgroundColor), + const DeepCollectionEquality().hash(buttonTextColor), + const DeepCollectionEquality().hash(shimmerBaseColor), + const DeepCollectionEquality().hash(shimmerHighlightColor), + const DeepCollectionEquality().hash(white), + const DeepCollectionEquality().hash(buttonBlueGradientEnd), + const DeepCollectionEquality().hash(elevatedButtonBackgroundColor), + const DeepCollectionEquality().hash(textColorWhite), + const DeepCollectionEquality().hash(bodyTextColor2), + const DeepCollectionEquality().hash(smallButtonFilledBackgroundColor), + const DeepCollectionEquality().hash(smallButtonOutlinedBorderColor), + const DeepCollectionEquality().hash(activeButtonLanguageTextColor), + const DeepCollectionEquality().hash(activeButtonTextColor), + const DeepCollectionEquality().hash(disabledButtonTextColor), + const DeepCollectionEquality().hash(black), + const DeepCollectionEquality().hash(activeGradientColorStart), + const DeepCollectionEquality().hash(activeGradientColorEnd), + const DeepCollectionEquality().hash(boxShadowColor), + const DeepCollectionEquality().hash(red), const DeepCollectionEquality().hash(orange), const DeepCollectionEquality().hash(orangeLight), - const DeepCollectionEquality().hash(outlineButtonBackgroundColor), - const DeepCollectionEquality().hash(outlineButtonBorderColor), + const DeepCollectionEquality().hash(darkBlue), + const DeepCollectionEquality().hash(darkGreen), + const DeepCollectionEquality().hash(textButtonLoadingIndicatorColor), + const DeepCollectionEquality().hash(buttonShadowColor), + const DeepCollectionEquality().hash(buttonPressedColor), + const DeepCollectionEquality().hash(buttonBorderColor), const DeepCollectionEquality().hash(outlineButtonContentPadding), + const DeepCollectionEquality().hash(outlineButtonTextStyle), const DeepCollectionEquality().hash(outlineButtonDescriptionTextStyle), + const DeepCollectionEquality().hash(outlineButtonBackgroundColor), const DeepCollectionEquality().hash(outlineButtonForegroundColor), + const DeepCollectionEquality().hash(outlineButtonBorderColor), const DeepCollectionEquality().hash(outlineButtonPressedColor), const DeepCollectionEquality().hash(outlineButtonTextColor), const DeepCollectionEquality().hash(outlineButtonTextColorDisabled), - const DeepCollectionEquality().hash(outlineButtonTextStyle), - const DeepCollectionEquality().hash(pickerListItemBorderRadius), - const DeepCollectionEquality().hash(pickerListItemInnerEdgeInsets), - const DeepCollectionEquality().hash(pickerListItemOuterEdgeInsets), - const DeepCollectionEquality().hash(pickerListItemSelectedColor), - const DeepCollectionEquality().hash(pickerListItemTextStyle), - const DeepCollectionEquality().hash(pickerListItemUnselectedColor), - const DeepCollectionEquality().hash(primaryColor), - const DeepCollectionEquality().hash(primaryGradientEnd), - const DeepCollectionEquality().hash(primaryGradientStart), - const DeepCollectionEquality().hash(red), - const DeepCollectionEquality().hash(scaffoldBackgroundColor), - const DeepCollectionEquality().hash(searchTextFieldBackgroundColor), - const DeepCollectionEquality().hash(searchTextFieldBackgroundColorActive), - const DeepCollectionEquality().hash(searchTextFieldBorderRadius), - const DeepCollectionEquality().hash(searchTextFieldBorderType), - const DeepCollectionEquality().hash(searchTextFieldHintStyle), - const DeepCollectionEquality().hash(searchTextFieldIconColor), - const DeepCollectionEquality().hash(searchTextFieldIconColorActive), - const DeepCollectionEquality().hash(searchTextFieldIconEdgeInsets), - const DeepCollectionEquality().hash(searchTextFieldTextStyle), - const DeepCollectionEquality().hash(shimmerBaseColor), - const DeepCollectionEquality().hash(shimmerHighlightColor), - const DeepCollectionEquality().hash(smallButtonBackgroundColor), - const DeepCollectionEquality().hash(smallButtonFilledBackgroundColor), - const DeepCollectionEquality().hash(smallButtonOutlinedBorderColor), + const DeepCollectionEquality().hash(bottomSheetHeaderPadding), + const DeepCollectionEquality().hash(bottomSheetCloseButtonPadding), + const DeepCollectionEquality().hash(bottomSheetContentPadding), + const DeepCollectionEquality().hash(messagePanelErrorEdgeInsets), + const DeepCollectionEquality().hash(errorModalContentTitleInsets), const DeepCollectionEquality().hash(smallEdgeInsets), - const DeepCollectionEquality().hash(spacingL), - const DeepCollectionEquality().hash(spacingM), - const DeepCollectionEquality().hash(spacingS), - const DeepCollectionEquality().hash(spacingXL), - const DeepCollectionEquality().hash(spacingXS), + const DeepCollectionEquality().hash(mediumEdgeInsets), + const DeepCollectionEquality().hash(largeEdgeInsets), + const DeepCollectionEquality().hash(messagePanelEdgeInsets), const DeepCollectionEquality().hash(spacingXS1), + const DeepCollectionEquality().hash(spacingXS), const DeepCollectionEquality().hash(spacingXSS), + const DeepCollectionEquality().hash(spacingS), + const DeepCollectionEquality().hash(spacingM), + const DeepCollectionEquality().hash(spacingL), + const DeepCollectionEquality().hash(spacingXL), const DeepCollectionEquality().hash(spacingXXL), const DeepCollectionEquality().hash(spacingXXXXL1), - const DeepCollectionEquality().hash(textButtonBackgroundColor), const DeepCollectionEquality().hash(textButtonIconRightPadding), - const DeepCollectionEquality().hash(textButtonLoadingIndicatorColor), const DeepCollectionEquality().hash(textButtonPadding), - const DeepCollectionEquality().hash(textButtonTextColorDisabled), - const DeepCollectionEquality().hash(textButtonTextStyle), - const DeepCollectionEquality().hash(textColorWhite), - const DeepCollectionEquality().hash(titleBold), - const DeepCollectionEquality().hash(white), + const DeepCollectionEquality().hash(appBarTextButtonPadding), + const DeepCollectionEquality().hash(bottomSheetBottomPadding), + const DeepCollectionEquality().hash(checkIcon), + const DeepCollectionEquality().hash(checkCircleIcon), + const DeepCollectionEquality().hash(closeIcon), + const DeepCollectionEquality().hash(dangerIcon), + const DeepCollectionEquality().hash(educateIcon), + const DeepCollectionEquality().hash(greatNewsIcon), + const DeepCollectionEquality().hash(infoCircleIcon), + const DeepCollectionEquality().hash(messageIcon), ]); } } diff --git a/packages/widget_toolkit/lib/src/lib_edit_address/theme/edit_address_theme.dart b/packages/widget_toolkit/lib/src/lib_edit_address/theme/edit_address_theme.dart index a1dc1d5d..8fa70997 100644 --- a/packages/widget_toolkit/lib/src/lib_edit_address/theme/edit_address_theme.dart +++ b/packages/widget_toolkit/lib/src/lib_edit_address/theme/edit_address_theme.dart @@ -6,231 +6,274 @@ import '../../base/theme/design_system/widget_toolkit_design_system.dart'; part 'edit_address_theme.tailor.dart'; -@Tailor(themeGetter: ThemeGetter.none) -class _$EditAddressTheme { - /// region spacings - static List spacingM = [ - WidgetToolkitDesignSystem.light().spacings.m, - WidgetToolkitDesignSystem.dark().spacings.m, - ]; - static List spacingXSS = [ - WidgetToolkitDesignSystem.light().spacings.xss, - WidgetToolkitDesignSystem.dark().spacings.xss, - ]; - - static List spacingXS = [ - WidgetToolkitDesignSystem.light().spacings.xs, - WidgetToolkitDesignSystem.dark().spacings.xs, - ]; - - static List editAddressWidgetSpacingXS = spacingXS; - - static List addressWidgetSpacingXS = spacingXS; - - static List spacingS = [ - WidgetToolkitDesignSystem.light().spacings.s, - WidgetToolkitDesignSystem.dark().spacings.s, - ]; - static List spacingL = [ - WidgetToolkitDesignSystem.light().spacings.l, - WidgetToolkitDesignSystem.dark().spacings.l, - ]; - - static List spacingXL = [ - WidgetToolkitDesignSystem.light().spacings.xl, - WidgetToolkitDesignSystem.dark().spacings.xl, - ]; - - static List spacingXXL = [ - WidgetToolkitDesignSystem.light().spacings.xxl, - WidgetToolkitDesignSystem.dark().spacings.xxl, - ]; - - static List spacingXXXL = [ - WidgetToolkitDesignSystem.light().spacings.xxxl, - WidgetToolkitDesignSystem.dark().spacings.xxxl, - ]; - - ///endregion - /// region TextStyle - static List captionBold = [ - WidgetToolkitDesignSystem.light().typography.captionBold, - WidgetToolkitDesignSystem.dark().typography.captionBold, - ]; - static List descriptionThin = [ - WidgetToolkitDesignSystem.light().typography.descriptionThin, - WidgetToolkitDesignSystem.dark().typography.descriptionThin, - ]; - static List titleBold = [ - WidgetToolkitDesignSystem.light().typography.titleBold, - WidgetToolkitDesignSystem.dark().typography.titleBold, - ]; - - /// endregion - ///region Color - static List white = [ - WidgetToolkitDesignSystem.light().colors.editAddressWhite, - WidgetToolkitDesignSystem.dark().colors.editAddressWhite, - ]; - static List black = [ - WidgetToolkitDesignSystem.light().colors.editAddressBlack, - WidgetToolkitDesignSystem.dark().colors.editAddressBlack, - ]; - - static List editAddressWidgetColor = [ - WidgetToolkitDesignSystem.light().colors.editAddressMediumWhite, - WidgetToolkitDesignSystem.dark().colors.editAddressWidget, - ]; - - static List mediumWhite = [ - WidgetToolkitDesignSystem.light().colors.editAddressMediumWhite, - WidgetToolkitDesignSystem.dark().colors.editAddressMediumWhite, - ]; - static List green = [ - WidgetToolkitDesignSystem.light().colors.editAddressGreen, - WidgetToolkitDesignSystem.dark().colors.editAddressGreen, - ]; - - static List blue = [ - WidgetToolkitDesignSystem.light().colors.editAddressBlue, - WidgetToolkitDesignSystem.dark().colors.editAddressBlue, - ]; - - static List editAddressPageBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.white, - WidgetToolkitDesignSystem.dark().colors.editAddressBackground, - ]; - - static List permanentAddressBlueLightColor = [ - WidgetToolkitDesignSystem.light().colors.permanentAddressBlueLight, - WidgetToolkitDesignSystem.dark().colors.permanentAddressBlueLight, - ]; - - static List disabledFilledButtonBackgroundColor = [ - WidgetToolkitDesignSystem.light() - .colors - .permanentAddressDisabledFilledButtonBackgroundColor, - WidgetToolkitDesignSystem.dark() - .colors - .permanentAddressDisabledFilledButtonBackgroundColor, - ]; - - static List editAddressWidgetHighlightTransparent = [ - WidgetToolkitDesignSystem.light().colors.editAddressWidgetHighlightColor, - WidgetToolkitDesignSystem.dark().colors.editAddressWidgetHighlightColor, - ]; - - static List editAddressWidgetSplashTransparent = [ - WidgetToolkitDesignSystem.light().colors.editAddressWidgetSplashColor, - WidgetToolkitDesignSystem.dark().colors.editAddressWidgetSplashColor, - ]; - - /// endregion - ///region EdgeInsets - static List editAddressPageOuterMostPadding = [ - EdgeInsets.zero, - EdgeInsets.zero, - ]; - - static List editAddressPageOnAddressSavedPadding = [ - EdgeInsets.only( - left: WidgetToolkitDesignSystem.light().spacings.xs, - bottom: WidgetToolkitDesignSystem.light().spacings.xxl), - EdgeInsets.only( - left: WidgetToolkitDesignSystem.dark().spacings.xs, - bottom: WidgetToolkitDesignSystem.dark().spacings.xxl), - ]; - - static List editAddressPageErrorPanelPadding = [ - EdgeInsets.only( - bottom: WidgetToolkitDesignSystem.light().spacings.m, - ), - EdgeInsets.only( - bottom: WidgetToolkitDesignSystem.dark().spacings.m, - ), - ]; - - static List permanentAddressPadding1 = [ - EdgeInsets.zero, - EdgeInsets.zero, - ]; - - static List permanentAddressPadding2 = [ - EdgeInsets.only( - top: WidgetToolkitDesignSystem.light().spacings.xl1, - ), - EdgeInsets.only( - top: WidgetToolkitDesignSystem.dark().spacings.xl1, - ) - ]; - - static List permanentAddressPadding3 = [ - EdgeInsets.only( - left: WidgetToolkitDesignSystem.light().spacings.m, - right: WidgetToolkitDesignSystem.light().spacings.m, - top: WidgetToolkitDesignSystem.light().spacings.l, - bottom: WidgetToolkitDesignSystem.light().spacings.l, - ), - EdgeInsets.only( - left: WidgetToolkitDesignSystem.dark().spacings.m, - right: WidgetToolkitDesignSystem.dark().spacings.m, - top: WidgetToolkitDesignSystem.dark().spacings.l, - bottom: WidgetToolkitDesignSystem.dark().spacings.l, - ), - ]; - - static List permanentAddressPadding4 = [ - EdgeInsets.only( - bottom: WidgetToolkitDesignSystem.light().spacings.m, - ), - EdgeInsets.only( - bottom: WidgetToolkitDesignSystem.dark().spacings.m, - ), - ]; - - static List editAddressWidgetPadding1 = [ - EdgeInsets.only(bottom: WidgetToolkitDesignSystem.light().spacings.s), - EdgeInsets.only(bottom: WidgetToolkitDesignSystem.dark().spacings.s), - ]; - - static List editAddressWidgetPadding2 = [ - EdgeInsets.symmetric( - vertical: WidgetToolkitDesignSystem.light().spacings.s, - horizontal: WidgetToolkitDesignSystem.light().spacings.m, - ), - EdgeInsets.symmetric( - vertical: WidgetToolkitDesignSystem.dark().spacings.s, - horizontal: WidgetToolkitDesignSystem.dark().spacings.m, - ), - ]; - - static List editAddressWidgetPadding3 = [ - EdgeInsets.only( - top: WidgetToolkitDesignSystem.light().spacings.xss, - bottom: WidgetToolkitDesignSystem.light().spacings.xss, - ), - EdgeInsets.only( - top: WidgetToolkitDesignSystem.dark().spacings.xss, - bottom: WidgetToolkitDesignSystem.dark().spacings.xss, - ), - ]; - - static List editAddressWidgetPadding4 = [ - EdgeInsets.only(left: WidgetToolkitDesignSystem.light().spacings.s), - EdgeInsets.only(left: WidgetToolkitDesignSystem.dark().spacings.s), - ]; - - /// endregion - /// region Icons - static List editPenIcon = [ - WidgetToolkitDesignSystem.dark().icons.editPenIcon, - WidgetToolkitDesignSystem.light().icons.editPenIcon, - ]; - - static List infoCircleIcon = [ - WidgetToolkitDesignSystem.dark().icons.infoCircleIcon, - WidgetToolkitDesignSystem.light().icons.infoCircleIcon, - ]; +@TailorMixinComponent() +class EditAddressTheme extends ThemeExtension + with _$EditAddressThemeTailorMixin { + const EditAddressTheme({ + required this.spacingM, + required this.spacingXSS, + required this.spacingXS, + required this.editAddressWidgetSpacingXS, + required this.addressWidgetSpacingXS, + required this.spacingS, + required this.spacingL, + required this.spacingXL, + required this.spacingXXL, + required this.spacingXXXL, + required this.captionBold, + required this.descriptionThin, + required this.titleBold, + required this.white, + required this.black, + required this.editAddressWidgetColor, + required this.mediumWhite, + required this.green, + required this.blue, + required this.editAddressPageBackgroundColor, + required this.permanentAddressBlueLightColor, + required this.disabledFilledButtonBackgroundColor, + required this.editAddressWidgetHighlightTransparent, + required this.editAddressWidgetSplashTransparent, + required this.editAddressPageOuterMostPadding, + required this.editAddressPageOnAddressSavedPadding, + required this.editAddressPageErrorPanelPadding, + required this.permanentAddressPadding1, + required this.permanentAddressPadding2, + required this.permanentAddressPadding3, + required this.permanentAddressPadding4, + required this.editAddressWidgetPadding1, + required this.editAddressWidgetPadding2, + required this.editAddressWidgetPadding3, + required this.editAddressWidgetPadding4, + required this.editPenIcon, + required this.infoCircleIcon, + }); + + @override + final double spacingM; + @override + final double spacingXSS; + @override + final double spacingXS; + @override + final double editAddressWidgetSpacingXS; + @override + final double addressWidgetSpacingXS; + @override + final double spacingS; + @override + final double spacingL; + @override + final double spacingXL; + @override + final double spacingXXL; + @override + final double spacingXXXL; + + @override + final TextStyle captionBold; + @override + final TextStyle descriptionThin; + @override + final TextStyle titleBold; + + @override + final Color white; + @override + final Color black; + @override + final Color editAddressWidgetColor; + @override + final Color mediumWhite; + @override + final Color green; + @override + final Color blue; + @override + final Color editAddressPageBackgroundColor; + @override + final Color permanentAddressBlueLightColor; + @override + final Color disabledFilledButtonBackgroundColor; + @override + final Color editAddressWidgetHighlightTransparent; + @override + final Color editAddressWidgetSplashTransparent; + + @override + final EdgeInsets editAddressPageOuterMostPadding; + @override + final EdgeInsets editAddressPageOnAddressSavedPadding; + @override + final EdgeInsets editAddressPageErrorPanelPadding; + @override + final EdgeInsets permanentAddressPadding1; + @override + final EdgeInsets permanentAddressPadding2; + @override + final EdgeInsets permanentAddressPadding3; + @override + final EdgeInsets permanentAddressPadding4; + @override + final EdgeInsets editAddressWidgetPadding1; + @override + final EdgeInsets editAddressWidgetPadding2; + @override + final EdgeInsets editAddressWidgetPadding3; + @override + final EdgeInsets editAddressWidgetPadding4; + + @override + final SvgFile editPenIcon; + @override + final SvgFile infoCircleIcon; + + /// region Themes + + EditAddressTheme.light() + : spacingM = WidgetToolkitDesignSystem.light().spacings.m, + spacingXSS = WidgetToolkitDesignSystem.light().spacings.xss, + spacingXS = WidgetToolkitDesignSystem.light().spacings.xs, + editAddressWidgetSpacingXS = + WidgetToolkitDesignSystem.light().spacings.xs, + addressWidgetSpacingXS = WidgetToolkitDesignSystem.light().spacings.xs, + spacingS = WidgetToolkitDesignSystem.light().spacings.s, + spacingL = WidgetToolkitDesignSystem.light().spacings.l, + spacingXL = WidgetToolkitDesignSystem.light().spacings.xl, + spacingXXL = WidgetToolkitDesignSystem.light().spacings.xxl, + spacingXXXL = WidgetToolkitDesignSystem.light().spacings.xxxl, + captionBold = WidgetToolkitDesignSystem.light().typography.captionBold, + descriptionThin = + WidgetToolkitDesignSystem.light().typography.descriptionThin, + titleBold = WidgetToolkitDesignSystem.light().typography.titleBold, + white = WidgetToolkitDesignSystem.light().colors.editAddressWhite, + black = WidgetToolkitDesignSystem.light().colors.editAddressBlack, + editAddressWidgetColor = + WidgetToolkitDesignSystem.light().colors.editAddressMediumWhite, + mediumWhite = + WidgetToolkitDesignSystem.light().colors.editAddressMediumWhite, + green = WidgetToolkitDesignSystem.light().colors.editAddressGreen, + blue = WidgetToolkitDesignSystem.light().colors.editAddressBlue, + editAddressPageBackgroundColor = + WidgetToolkitDesignSystem.light().colors.white, + permanentAddressBlueLightColor = + WidgetToolkitDesignSystem.light().colors.permanentAddressBlueLight, + disabledFilledButtonBackgroundColor = WidgetToolkitDesignSystem.light() + .colors + .permanentAddressDisabledFilledButtonBackgroundColor, + editAddressWidgetHighlightTransparent = + WidgetToolkitDesignSystem.light() + .colors + .editAddressWidgetHighlightColor, + editAddressWidgetSplashTransparent = WidgetToolkitDesignSystem.light() + .colors + .editAddressWidgetSplashColor, + editAddressPageOuterMostPadding = EdgeInsets.zero, + editAddressPageOnAddressSavedPadding = EdgeInsets.only( + left: WidgetToolkitDesignSystem.light().spacings.xs, + bottom: WidgetToolkitDesignSystem.light().spacings.xxl), + editAddressPageErrorPanelPadding = EdgeInsets.only( + bottom: WidgetToolkitDesignSystem.light().spacings.m, + ), + permanentAddressPadding1 = EdgeInsets.zero, + permanentAddressPadding2 = EdgeInsets.only( + top: WidgetToolkitDesignSystem.light().spacings.xl1, + ), + permanentAddressPadding3 = EdgeInsets.only( + left: WidgetToolkitDesignSystem.light().spacings.m, + right: WidgetToolkitDesignSystem.light().spacings.m, + top: WidgetToolkitDesignSystem.light().spacings.l, + bottom: WidgetToolkitDesignSystem.light().spacings.l, + ), + permanentAddressPadding4 = EdgeInsets.only( + bottom: WidgetToolkitDesignSystem.light().spacings.m, + ), + editAddressWidgetPadding1 = EdgeInsets.only( + bottom: WidgetToolkitDesignSystem.light().spacings.s), + editAddressWidgetPadding2 = EdgeInsets.symmetric( + vertical: WidgetToolkitDesignSystem.light().spacings.s, + horizontal: WidgetToolkitDesignSystem.light().spacings.m, + ), + editAddressWidgetPadding3 = EdgeInsets.only( + top: WidgetToolkitDesignSystem.light().spacings.xss, + bottom: WidgetToolkitDesignSystem.light().spacings.xss, + ), + editAddressWidgetPadding4 = + EdgeInsets.only(left: WidgetToolkitDesignSystem.light().spacings.s), + editPenIcon = WidgetToolkitDesignSystem.dark().icons.editPenIcon, + infoCircleIcon = WidgetToolkitDesignSystem.dark().icons.infoCircleIcon; + + EditAddressTheme.dark() + : spacingM = WidgetToolkitDesignSystem.dark().spacings.m, + spacingXSS = WidgetToolkitDesignSystem.dark().spacings.xss, + spacingXS = WidgetToolkitDesignSystem.dark().spacings.xs, + editAddressWidgetSpacingXS = + WidgetToolkitDesignSystem.dark().spacings.xs, + addressWidgetSpacingXS = WidgetToolkitDesignSystem.dark().spacings.xs, + spacingS = WidgetToolkitDesignSystem.dark().spacings.s, + spacingL = WidgetToolkitDesignSystem.dark().spacings.l, + spacingXL = WidgetToolkitDesignSystem.dark().spacings.xl, + spacingXXL = WidgetToolkitDesignSystem.dark().spacings.xxl, + spacingXXXL = WidgetToolkitDesignSystem.dark().spacings.xxxl, + captionBold = WidgetToolkitDesignSystem.dark().typography.captionBold, + descriptionThin = + WidgetToolkitDesignSystem.dark().typography.descriptionThin, + titleBold = WidgetToolkitDesignSystem.dark().typography.titleBold, + white = WidgetToolkitDesignSystem.dark().colors.editAddressWhite, + black = WidgetToolkitDesignSystem.dark().colors.editAddressBlack, + editAddressWidgetColor = + WidgetToolkitDesignSystem.dark().colors.editAddressMediumWhite, + mediumWhite = + WidgetToolkitDesignSystem.dark().colors.editAddressMediumWhite, + green = WidgetToolkitDesignSystem.dark().colors.editAddressGreen, + blue = WidgetToolkitDesignSystem.dark().colors.editAddressBlue, + editAddressPageBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.white, + permanentAddressBlueLightColor = + WidgetToolkitDesignSystem.dark().colors.permanentAddressBlueLight, + disabledFilledButtonBackgroundColor = WidgetToolkitDesignSystem.dark() + .colors + .permanentAddressDisabledFilledButtonBackgroundColor, + editAddressWidgetHighlightTransparent = WidgetToolkitDesignSystem.dark() + .colors + .editAddressWidgetHighlightColor, + editAddressWidgetSplashTransparent = WidgetToolkitDesignSystem.dark() + .colors + .editAddressWidgetSplashColor, + editAddressPageOuterMostPadding = EdgeInsets.zero, + editAddressPageOnAddressSavedPadding = EdgeInsets.only( + left: WidgetToolkitDesignSystem.dark().spacings.xs, + bottom: WidgetToolkitDesignSystem.dark().spacings.xxl), + editAddressPageErrorPanelPadding = EdgeInsets.only( + bottom: WidgetToolkitDesignSystem.dark().spacings.m, + ), + permanentAddressPadding1 = EdgeInsets.zero, + permanentAddressPadding2 = EdgeInsets.only( + top: WidgetToolkitDesignSystem.dark().spacings.xl1, + ), + permanentAddressPadding3 = EdgeInsets.only( + left: WidgetToolkitDesignSystem.dark().spacings.m, + right: WidgetToolkitDesignSystem.dark().spacings.m, + top: WidgetToolkitDesignSystem.dark().spacings.l, + bottom: WidgetToolkitDesignSystem.dark().spacings.l, + ), + permanentAddressPadding4 = EdgeInsets.only( + bottom: WidgetToolkitDesignSystem.dark().spacings.m, + ), + editAddressWidgetPadding1 = EdgeInsets.only( + bottom: WidgetToolkitDesignSystem.dark().spacings.s), + editAddressWidgetPadding2 = EdgeInsets.symmetric( + vertical: WidgetToolkitDesignSystem.dark().spacings.s, + horizontal: WidgetToolkitDesignSystem.dark().spacings.m, + ), + editAddressWidgetPadding3 = EdgeInsets.only( + top: WidgetToolkitDesignSystem.dark().spacings.xss, + bottom: WidgetToolkitDesignSystem.dark().spacings.xss, + ), + editAddressWidgetPadding4 = + EdgeInsets.only(left: WidgetToolkitDesignSystem.dark().spacings.s), + editPenIcon = WidgetToolkitDesignSystem.light().icons.editPenIcon, + infoCircleIcon = WidgetToolkitDesignSystem.light().icons.infoCircleIcon; /// endregion } diff --git a/packages/widget_toolkit/lib/src/lib_edit_address/theme/edit_address_theme.tailor.dart b/packages/widget_toolkit/lib/src/lib_edit_address/theme/edit_address_theme.tailor.dart index 5826c318..c7c7f2ae 100644 --- a/packages/widget_toolkit/lib/src/lib_edit_address/theme/edit_address_theme.tailor.dart +++ b/packages/widget_toolkit/lib/src/lib_edit_address/theme/edit_address_theme.tailor.dart @@ -8,284 +8,127 @@ part of 'edit_address_theme.dart'; // TailorAnnotationsGenerator // ************************************************************************** -class EditAddressTheme extends ThemeExtension { - const EditAddressTheme({ - required this.addressWidgetSpacingXS, - required this.black, - required this.blue, - required this.captionBold, - required this.descriptionThin, - required this.disabledFilledButtonBackgroundColor, - required this.editAddressPageBackgroundColor, - required this.editAddressPageErrorPanelPadding, - required this.editAddressPageOnAddressSavedPadding, - required this.editAddressPageOuterMostPadding, - required this.editAddressWidgetColor, - required this.editAddressWidgetHighlightTransparent, - required this.editAddressWidgetPadding1, - required this.editAddressWidgetPadding2, - required this.editAddressWidgetPadding3, - required this.editAddressWidgetPadding4, - required this.editAddressWidgetSpacingXS, - required this.editAddressWidgetSplashTransparent, - required this.editPenIcon, - required this.green, - required this.infoCircleIcon, - required this.mediumWhite, - required this.permanentAddressBlueLightColor, - required this.permanentAddressPadding1, - required this.permanentAddressPadding2, - required this.permanentAddressPadding3, - required this.permanentAddressPadding4, - required this.spacingL, - required this.spacingM, - required this.spacingS, - required this.spacingXL, - required this.spacingXS, - required this.spacingXSS, - required this.spacingXXL, - required this.spacingXXXL, - required this.titleBold, - required this.white, - }); - - final double addressWidgetSpacingXS; - final Color black; - final Color blue; - - ///endregion - /// region TextStyle - final TextStyle captionBold; - final TextStyle descriptionThin; - final Color disabledFilledButtonBackgroundColor; - final Color editAddressPageBackgroundColor; - final EdgeInsets editAddressPageErrorPanelPadding; - final EdgeInsets editAddressPageOnAddressSavedPadding; - - /// endregion - ///region EdgeInsets - final EdgeInsets editAddressPageOuterMostPadding; - final Color editAddressWidgetColor; - final Color editAddressWidgetHighlightTransparent; - final EdgeInsets editAddressWidgetPadding1; - final EdgeInsets editAddressWidgetPadding2; - final EdgeInsets editAddressWidgetPadding3; - final EdgeInsets editAddressWidgetPadding4; - final double editAddressWidgetSpacingXS; - final Color editAddressWidgetSplashTransparent; - - /// endregion - /// region Icons - final SvgFile editPenIcon; - final Color green; - final SvgFile infoCircleIcon; - final Color mediumWhite; - final Color permanentAddressBlueLightColor; - final EdgeInsets permanentAddressPadding1; - final EdgeInsets permanentAddressPadding2; - final EdgeInsets permanentAddressPadding3; - final EdgeInsets permanentAddressPadding4; - final double spacingL; - - /// region spacings - final double spacingM; - final double spacingS; - final double spacingXL; - final double spacingXS; - final double spacingXSS; - final double spacingXXL; - final double spacingXXXL; - final TextStyle titleBold; - - /// endregion - ///region Color - final Color white; - - static final EditAddressTheme light = EditAddressTheme( - addressWidgetSpacingXS: _$EditAddressTheme.addressWidgetSpacingXS[0], - black: _$EditAddressTheme.black[0], - blue: _$EditAddressTheme.blue[0], - captionBold: _$EditAddressTheme.captionBold[0], - descriptionThin: _$EditAddressTheme.descriptionThin[0], - disabledFilledButtonBackgroundColor: - _$EditAddressTheme.disabledFilledButtonBackgroundColor[0], - editAddressPageBackgroundColor: - _$EditAddressTheme.editAddressPageBackgroundColor[0], - editAddressPageErrorPanelPadding: - _$EditAddressTheme.editAddressPageErrorPanelPadding[0], - editAddressPageOnAddressSavedPadding: - _$EditAddressTheme.editAddressPageOnAddressSavedPadding[0], - editAddressPageOuterMostPadding: - _$EditAddressTheme.editAddressPageOuterMostPadding[0], - editAddressWidgetColor: _$EditAddressTheme.editAddressWidgetColor[0], - editAddressWidgetHighlightTransparent: - _$EditAddressTheme.editAddressWidgetHighlightTransparent[0], - editAddressWidgetPadding1: _$EditAddressTheme.editAddressWidgetPadding1[0], - editAddressWidgetPadding2: _$EditAddressTheme.editAddressWidgetPadding2[0], - editAddressWidgetPadding3: _$EditAddressTheme.editAddressWidgetPadding3[0], - editAddressWidgetPadding4: _$EditAddressTheme.editAddressWidgetPadding4[0], - editAddressWidgetSpacingXS: - _$EditAddressTheme.editAddressWidgetSpacingXS[0], - editAddressWidgetSplashTransparent: - _$EditAddressTheme.editAddressWidgetSplashTransparent[0], - editPenIcon: _$EditAddressTheme.editPenIcon[0], - green: _$EditAddressTheme.green[0], - infoCircleIcon: _$EditAddressTheme.infoCircleIcon[0], - mediumWhite: _$EditAddressTheme.mediumWhite[0], - permanentAddressBlueLightColor: - _$EditAddressTheme.permanentAddressBlueLightColor[0], - permanentAddressPadding1: _$EditAddressTheme.permanentAddressPadding1[0], - permanentAddressPadding2: _$EditAddressTheme.permanentAddressPadding2[0], - permanentAddressPadding3: _$EditAddressTheme.permanentAddressPadding3[0], - permanentAddressPadding4: _$EditAddressTheme.permanentAddressPadding4[0], - spacingL: _$EditAddressTheme.spacingL[0], - spacingM: _$EditAddressTheme.spacingM[0], - spacingS: _$EditAddressTheme.spacingS[0], - spacingXL: _$EditAddressTheme.spacingXL[0], - spacingXS: _$EditAddressTheme.spacingXS[0], - spacingXSS: _$EditAddressTheme.spacingXSS[0], - spacingXXL: _$EditAddressTheme.spacingXXL[0], - spacingXXXL: _$EditAddressTheme.spacingXXXL[0], - titleBold: _$EditAddressTheme.titleBold[0], - white: _$EditAddressTheme.white[0], - ); - - static final EditAddressTheme dark = EditAddressTheme( - addressWidgetSpacingXS: _$EditAddressTheme.addressWidgetSpacingXS[1], - black: _$EditAddressTheme.black[1], - blue: _$EditAddressTheme.blue[1], - captionBold: _$EditAddressTheme.captionBold[1], - descriptionThin: _$EditAddressTheme.descriptionThin[1], - disabledFilledButtonBackgroundColor: - _$EditAddressTheme.disabledFilledButtonBackgroundColor[1], - editAddressPageBackgroundColor: - _$EditAddressTheme.editAddressPageBackgroundColor[1], - editAddressPageErrorPanelPadding: - _$EditAddressTheme.editAddressPageErrorPanelPadding[1], - editAddressPageOnAddressSavedPadding: - _$EditAddressTheme.editAddressPageOnAddressSavedPadding[1], - editAddressPageOuterMostPadding: - _$EditAddressTheme.editAddressPageOuterMostPadding[1], - editAddressWidgetColor: _$EditAddressTheme.editAddressWidgetColor[1], - editAddressWidgetHighlightTransparent: - _$EditAddressTheme.editAddressWidgetHighlightTransparent[1], - editAddressWidgetPadding1: _$EditAddressTheme.editAddressWidgetPadding1[1], - editAddressWidgetPadding2: _$EditAddressTheme.editAddressWidgetPadding2[1], - editAddressWidgetPadding3: _$EditAddressTheme.editAddressWidgetPadding3[1], - editAddressWidgetPadding4: _$EditAddressTheme.editAddressWidgetPadding4[1], - editAddressWidgetSpacingXS: - _$EditAddressTheme.editAddressWidgetSpacingXS[1], - editAddressWidgetSplashTransparent: - _$EditAddressTheme.editAddressWidgetSplashTransparent[1], - editPenIcon: _$EditAddressTheme.editPenIcon[1], - green: _$EditAddressTheme.green[1], - infoCircleIcon: _$EditAddressTheme.infoCircleIcon[1], - mediumWhite: _$EditAddressTheme.mediumWhite[1], - permanentAddressBlueLightColor: - _$EditAddressTheme.permanentAddressBlueLightColor[1], - permanentAddressPadding1: _$EditAddressTheme.permanentAddressPadding1[1], - permanentAddressPadding2: _$EditAddressTheme.permanentAddressPadding2[1], - permanentAddressPadding3: _$EditAddressTheme.permanentAddressPadding3[1], - permanentAddressPadding4: _$EditAddressTheme.permanentAddressPadding4[1], - spacingL: _$EditAddressTheme.spacingL[1], - spacingM: _$EditAddressTheme.spacingM[1], - spacingS: _$EditAddressTheme.spacingS[1], - spacingXL: _$EditAddressTheme.spacingXL[1], - spacingXS: _$EditAddressTheme.spacingXS[1], - spacingXSS: _$EditAddressTheme.spacingXSS[1], - spacingXXL: _$EditAddressTheme.spacingXXL[1], - spacingXXXL: _$EditAddressTheme.spacingXXXL[1], - titleBold: _$EditAddressTheme.titleBold[1], - white: _$EditAddressTheme.white[1], - ); - - static final themes = [ - light, - dark, - ]; +mixin _$EditAddressThemeTailorMixin on ThemeExtension { + double get spacingM; + double get spacingXSS; + double get spacingXS; + double get editAddressWidgetSpacingXS; + double get addressWidgetSpacingXS; + double get spacingS; + double get spacingL; + double get spacingXL; + double get spacingXXL; + double get spacingXXXL; + TextStyle get captionBold; + TextStyle get descriptionThin; + TextStyle get titleBold; + Color get white; + Color get black; + Color get editAddressWidgetColor; + Color get mediumWhite; + Color get green; + Color get blue; + Color get editAddressPageBackgroundColor; + Color get permanentAddressBlueLightColor; + Color get disabledFilledButtonBackgroundColor; + Color get editAddressWidgetHighlightTransparent; + Color get editAddressWidgetSplashTransparent; + EdgeInsets get editAddressPageOuterMostPadding; + EdgeInsets get editAddressPageOnAddressSavedPadding; + EdgeInsets get editAddressPageErrorPanelPadding; + EdgeInsets get permanentAddressPadding1; + EdgeInsets get permanentAddressPadding2; + EdgeInsets get permanentAddressPadding3; + EdgeInsets get permanentAddressPadding4; + EdgeInsets get editAddressWidgetPadding1; + EdgeInsets get editAddressWidgetPadding2; + EdgeInsets get editAddressWidgetPadding3; + EdgeInsets get editAddressWidgetPadding4; + SvgFile get editPenIcon; + SvgFile get infoCircleIcon; @override EditAddressTheme copyWith({ + double? spacingM, + double? spacingXSS, + double? spacingXS, + double? editAddressWidgetSpacingXS, double? addressWidgetSpacingXS, - Color? black, - Color? blue, + double? spacingS, + double? spacingL, + double? spacingXL, + double? spacingXXL, + double? spacingXXXL, TextStyle? captionBold, TextStyle? descriptionThin, - Color? disabledFilledButtonBackgroundColor, - Color? editAddressPageBackgroundColor, - EdgeInsets? editAddressPageErrorPanelPadding, - EdgeInsets? editAddressPageOnAddressSavedPadding, - EdgeInsets? editAddressPageOuterMostPadding, + TextStyle? titleBold, + Color? white, + Color? black, Color? editAddressWidgetColor, + Color? mediumWhite, + Color? green, + Color? blue, + Color? editAddressPageBackgroundColor, + Color? permanentAddressBlueLightColor, + Color? disabledFilledButtonBackgroundColor, Color? editAddressWidgetHighlightTransparent, + Color? editAddressWidgetSplashTransparent, + EdgeInsets? editAddressPageOuterMostPadding, + EdgeInsets? editAddressPageOnAddressSavedPadding, + EdgeInsets? editAddressPageErrorPanelPadding, + EdgeInsets? permanentAddressPadding1, + EdgeInsets? permanentAddressPadding2, + EdgeInsets? permanentAddressPadding3, + EdgeInsets? permanentAddressPadding4, EdgeInsets? editAddressWidgetPadding1, EdgeInsets? editAddressWidgetPadding2, EdgeInsets? editAddressWidgetPadding3, EdgeInsets? editAddressWidgetPadding4, - double? editAddressWidgetSpacingXS, - Color? editAddressWidgetSplashTransparent, SvgFile? editPenIcon, - Color? green, SvgFile? infoCircleIcon, - Color? mediumWhite, - Color? permanentAddressBlueLightColor, - EdgeInsets? permanentAddressPadding1, - EdgeInsets? permanentAddressPadding2, - EdgeInsets? permanentAddressPadding3, - EdgeInsets? permanentAddressPadding4, - double? spacingL, - double? spacingM, - double? spacingS, - double? spacingXL, - double? spacingXS, - double? spacingXSS, - double? spacingXXL, - double? spacingXXXL, - TextStyle? titleBold, - Color? white, }) { return EditAddressTheme( + spacingM: spacingM ?? this.spacingM, + spacingXSS: spacingXSS ?? this.spacingXSS, + spacingXS: spacingXS ?? this.spacingXS, + editAddressWidgetSpacingXS: + editAddressWidgetSpacingXS ?? this.editAddressWidgetSpacingXS, addressWidgetSpacingXS: addressWidgetSpacingXS ?? this.addressWidgetSpacingXS, - black: black ?? this.black, - blue: blue ?? this.blue, + spacingS: spacingS ?? this.spacingS, + spacingL: spacingL ?? this.spacingL, + spacingXL: spacingXL ?? this.spacingXL, + spacingXXL: spacingXXL ?? this.spacingXXL, + spacingXXXL: spacingXXXL ?? this.spacingXXXL, captionBold: captionBold ?? this.captionBold, descriptionThin: descriptionThin ?? this.descriptionThin, + titleBold: titleBold ?? this.titleBold, + white: white ?? this.white, + black: black ?? this.black, + editAddressWidgetColor: + editAddressWidgetColor ?? this.editAddressWidgetColor, + mediumWhite: mediumWhite ?? this.mediumWhite, + green: green ?? this.green, + blue: blue ?? this.blue, + editAddressPageBackgroundColor: + editAddressPageBackgroundColor ?? this.editAddressPageBackgroundColor, + permanentAddressBlueLightColor: + permanentAddressBlueLightColor ?? this.permanentAddressBlueLightColor, disabledFilledButtonBackgroundColor: disabledFilledButtonBackgroundColor ?? this.disabledFilledButtonBackgroundColor, - editAddressPageBackgroundColor: - editAddressPageBackgroundColor ?? this.editAddressPageBackgroundColor, - editAddressPageErrorPanelPadding: editAddressPageErrorPanelPadding ?? - this.editAddressPageErrorPanelPadding, - editAddressPageOnAddressSavedPadding: - editAddressPageOnAddressSavedPadding ?? - this.editAddressPageOnAddressSavedPadding, - editAddressPageOuterMostPadding: editAddressPageOuterMostPadding ?? - this.editAddressPageOuterMostPadding, - editAddressWidgetColor: - editAddressWidgetColor ?? this.editAddressWidgetColor, editAddressWidgetHighlightTransparent: editAddressWidgetHighlightTransparent ?? this.editAddressWidgetHighlightTransparent, - editAddressWidgetPadding1: - editAddressWidgetPadding1 ?? this.editAddressWidgetPadding1, - editAddressWidgetPadding2: - editAddressWidgetPadding2 ?? this.editAddressWidgetPadding2, - editAddressWidgetPadding3: - editAddressWidgetPadding3 ?? this.editAddressWidgetPadding3, - editAddressWidgetPadding4: - editAddressWidgetPadding4 ?? this.editAddressWidgetPadding4, - editAddressWidgetSpacingXS: - editAddressWidgetSpacingXS ?? this.editAddressWidgetSpacingXS, editAddressWidgetSplashTransparent: editAddressWidgetSplashTransparent ?? this.editAddressWidgetSplashTransparent, - editPenIcon: editPenIcon ?? this.editPenIcon, - green: green ?? this.green, - infoCircleIcon: infoCircleIcon ?? this.infoCircleIcon, - mediumWhite: mediumWhite ?? this.mediumWhite, - permanentAddressBlueLightColor: - permanentAddressBlueLightColor ?? this.permanentAddressBlueLightColor, + editAddressPageOuterMostPadding: editAddressPageOuterMostPadding ?? + this.editAddressPageOuterMostPadding, + editAddressPageOnAddressSavedPadding: + editAddressPageOnAddressSavedPadding ?? + this.editAddressPageOnAddressSavedPadding, + editAddressPageErrorPanelPadding: editAddressPageErrorPanelPadding ?? + this.editAddressPageErrorPanelPadding, permanentAddressPadding1: permanentAddressPadding1 ?? this.permanentAddressPadding1, permanentAddressPadding2: @@ -294,16 +137,16 @@ class EditAddressTheme extends ThemeExtension { permanentAddressPadding3 ?? this.permanentAddressPadding3, permanentAddressPadding4: permanentAddressPadding4 ?? this.permanentAddressPadding4, - spacingL: spacingL ?? this.spacingL, - spacingM: spacingM ?? this.spacingM, - spacingS: spacingS ?? this.spacingS, - spacingXL: spacingXL ?? this.spacingXL, - spacingXS: spacingXS ?? this.spacingXS, - spacingXSS: spacingXSS ?? this.spacingXSS, - spacingXXL: spacingXXL ?? this.spacingXXL, - spacingXXXL: spacingXXXL ?? this.spacingXXXL, - titleBold: titleBold ?? this.titleBold, - white: white ?? this.white, + editAddressWidgetPadding1: + editAddressWidgetPadding1 ?? this.editAddressWidgetPadding1, + editAddressWidgetPadding2: + editAddressWidgetPadding2 ?? this.editAddressWidgetPadding2, + editAddressWidgetPadding3: + editAddressWidgetPadding3 ?? this.editAddressWidgetPadding3, + editAddressWidgetPadding4: + editAddressWidgetPadding4 ?? this.editAddressWidgetPadding4, + editPenIcon: editPenIcon ?? this.editPenIcon, + infoCircleIcon: infoCircleIcon ?? this.infoCircleIcon, ); } @@ -312,55 +155,55 @@ class EditAddressTheme extends ThemeExtension { covariant ThemeExtension? other, double t) { if (other is! EditAddressTheme) return this as EditAddressTheme; return EditAddressTheme( + spacingM: t < 0.5 ? spacingM : other.spacingM, + spacingXSS: t < 0.5 ? spacingXSS : other.spacingXSS, + spacingXS: t < 0.5 ? spacingXS : other.spacingXS, + editAddressWidgetSpacingXS: t < 0.5 + ? editAddressWidgetSpacingXS + : other.editAddressWidgetSpacingXS, addressWidgetSpacingXS: t < 0.5 ? addressWidgetSpacingXS : other.addressWidgetSpacingXS, - black: Color.lerp(black, other.black, t)!, - blue: Color.lerp(blue, other.blue, t)!, + spacingS: t < 0.5 ? spacingS : other.spacingS, + spacingL: t < 0.5 ? spacingL : other.spacingL, + spacingXL: t < 0.5 ? spacingXL : other.spacingXL, + spacingXXL: t < 0.5 ? spacingXXL : other.spacingXXL, + spacingXXXL: t < 0.5 ? spacingXXXL : other.spacingXXXL, captionBold: TextStyle.lerp(captionBold, other.captionBold, t)!, descriptionThin: TextStyle.lerp(descriptionThin, other.descriptionThin, t)!, + titleBold: TextStyle.lerp(titleBold, other.titleBold, t)!, + white: Color.lerp(white, other.white, t)!, + black: Color.lerp(black, other.black, t)!, + editAddressWidgetColor: + Color.lerp(editAddressWidgetColor, other.editAddressWidgetColor, t)!, + mediumWhite: Color.lerp(mediumWhite, other.mediumWhite, t)!, + green: Color.lerp(green, other.green, t)!, + blue: Color.lerp(blue, other.blue, t)!, + editAddressPageBackgroundColor: Color.lerp(editAddressPageBackgroundColor, + other.editAddressPageBackgroundColor, t)!, + permanentAddressBlueLightColor: Color.lerp(permanentAddressBlueLightColor, + other.permanentAddressBlueLightColor, t)!, disabledFilledButtonBackgroundColor: Color.lerp( disabledFilledButtonBackgroundColor, other.disabledFilledButtonBackgroundColor, t)!, - editAddressPageBackgroundColor: Color.lerp(editAddressPageBackgroundColor, - other.editAddressPageBackgroundColor, t)!, - editAddressPageErrorPanelPadding: t < 0.5 - ? editAddressPageErrorPanelPadding - : other.editAddressPageErrorPanelPadding, - editAddressPageOnAddressSavedPadding: t < 0.5 - ? editAddressPageOnAddressSavedPadding - : other.editAddressPageOnAddressSavedPadding, - editAddressPageOuterMostPadding: t < 0.5 - ? editAddressPageOuterMostPadding - : other.editAddressPageOuterMostPadding, - editAddressWidgetColor: - Color.lerp(editAddressWidgetColor, other.editAddressWidgetColor, t)!, editAddressWidgetHighlightTransparent: Color.lerp( editAddressWidgetHighlightTransparent, other.editAddressWidgetHighlightTransparent, t)!, - editAddressWidgetPadding1: - t < 0.5 ? editAddressWidgetPadding1 : other.editAddressWidgetPadding1, - editAddressWidgetPadding2: - t < 0.5 ? editAddressWidgetPadding2 : other.editAddressWidgetPadding2, - editAddressWidgetPadding3: - t < 0.5 ? editAddressWidgetPadding3 : other.editAddressWidgetPadding3, - editAddressWidgetPadding4: - t < 0.5 ? editAddressWidgetPadding4 : other.editAddressWidgetPadding4, - editAddressWidgetSpacingXS: t < 0.5 - ? editAddressWidgetSpacingXS - : other.editAddressWidgetSpacingXS, editAddressWidgetSplashTransparent: Color.lerp( editAddressWidgetSplashTransparent, other.editAddressWidgetSplashTransparent, t)!, - editPenIcon: t < 0.5 ? editPenIcon : other.editPenIcon, - green: Color.lerp(green, other.green, t)!, - infoCircleIcon: t < 0.5 ? infoCircleIcon : other.infoCircleIcon, - mediumWhite: Color.lerp(mediumWhite, other.mediumWhite, t)!, - permanentAddressBlueLightColor: Color.lerp(permanentAddressBlueLightColor, - other.permanentAddressBlueLightColor, t)!, + editAddressPageOuterMostPadding: t < 0.5 + ? editAddressPageOuterMostPadding + : other.editAddressPageOuterMostPadding, + editAddressPageOnAddressSavedPadding: t < 0.5 + ? editAddressPageOnAddressSavedPadding + : other.editAddressPageOnAddressSavedPadding, + editAddressPageErrorPanelPadding: t < 0.5 + ? editAddressPageErrorPanelPadding + : other.editAddressPageErrorPanelPadding, permanentAddressPadding1: t < 0.5 ? permanentAddressPadding1 : other.permanentAddressPadding1, permanentAddressPadding2: @@ -369,16 +212,16 @@ class EditAddressTheme extends ThemeExtension { t < 0.5 ? permanentAddressPadding3 : other.permanentAddressPadding3, permanentAddressPadding4: t < 0.5 ? permanentAddressPadding4 : other.permanentAddressPadding4, - spacingL: t < 0.5 ? spacingL : other.spacingL, - spacingM: t < 0.5 ? spacingM : other.spacingM, - spacingS: t < 0.5 ? spacingS : other.spacingS, - spacingXL: t < 0.5 ? spacingXL : other.spacingXL, - spacingXS: t < 0.5 ? spacingXS : other.spacingXS, - spacingXSS: t < 0.5 ? spacingXSS : other.spacingXSS, - spacingXXL: t < 0.5 ? spacingXXL : other.spacingXXL, - spacingXXXL: t < 0.5 ? spacingXXXL : other.spacingXXXL, - titleBold: TextStyle.lerp(titleBold, other.titleBold, t)!, - white: Color.lerp(white, other.white, t)!, + editAddressWidgetPadding1: + t < 0.5 ? editAddressWidgetPadding1 : other.editAddressWidgetPadding1, + editAddressWidgetPadding2: + t < 0.5 ? editAddressWidgetPadding2 : other.editAddressWidgetPadding2, + editAddressWidgetPadding3: + t < 0.5 ? editAddressWidgetPadding3 : other.editAddressWidgetPadding3, + editAddressWidgetPadding4: + t < 0.5 ? editAddressWidgetPadding4 : other.editAddressWidgetPadding4, + editPenIcon: t < 0.5 ? editPenIcon : other.editPenIcon, + infoCircleIcon: t < 0.5 ? infoCircleIcon : other.infoCircleIcon, ); } @@ -387,105 +230,111 @@ class EditAddressTheme extends ThemeExtension { return identical(this, other) || (other.runtimeType == runtimeType && other is EditAddressTheme && + const DeepCollectionEquality().equals(spacingM, other.spacingM) && + const DeepCollectionEquality() + .equals(spacingXSS, other.spacingXSS) && + const DeepCollectionEquality().equals(spacingXS, other.spacingXS) && + const DeepCollectionEquality().equals( + editAddressWidgetSpacingXS, other.editAddressWidgetSpacingXS) && const DeepCollectionEquality() .equals(addressWidgetSpacingXS, other.addressWidgetSpacingXS) && - const DeepCollectionEquality().equals(black, other.black) && - const DeepCollectionEquality().equals(blue, other.blue) && + const DeepCollectionEquality().equals(spacingS, other.spacingS) && + const DeepCollectionEquality().equals(spacingL, other.spacingL) && + const DeepCollectionEquality().equals(spacingXL, other.spacingXL) && + const DeepCollectionEquality() + .equals(spacingXXL, other.spacingXXL) && + const DeepCollectionEquality() + .equals(spacingXXXL, other.spacingXXXL) && const DeepCollectionEquality() .equals(captionBold, other.captionBold) && const DeepCollectionEquality() .equals(descriptionThin, other.descriptionThin) && - const DeepCollectionEquality().equals( - disabledFilledButtonBackgroundColor, - other.disabledFilledButtonBackgroundColor) && + const DeepCollectionEquality().equals(titleBold, other.titleBold) && + const DeepCollectionEquality().equals(white, other.white) && + const DeepCollectionEquality().equals(black, other.black) && + const DeepCollectionEquality() + .equals(editAddressWidgetColor, other.editAddressWidgetColor) && + const DeepCollectionEquality() + .equals(mediumWhite, other.mediumWhite) && + const DeepCollectionEquality().equals(green, other.green) && + const DeepCollectionEquality().equals(blue, other.blue) && const DeepCollectionEquality().equals( editAddressPageBackgroundColor, other.editAddressPageBackgroundColor) && const DeepCollectionEquality().equals( - editAddressPageErrorPanelPadding, - other.editAddressPageErrorPanelPadding) && - const DeepCollectionEquality().equals( - editAddressPageOnAddressSavedPadding, - other.editAddressPageOnAddressSavedPadding) && + permanentAddressBlueLightColor, + other.permanentAddressBlueLightColor) && const DeepCollectionEquality().equals( - editAddressPageOuterMostPadding, - other.editAddressPageOuterMostPadding) && - const DeepCollectionEquality() - .equals(editAddressWidgetColor, other.editAddressWidgetColor) && + disabledFilledButtonBackgroundColor, + other.disabledFilledButtonBackgroundColor) && const DeepCollectionEquality().equals( editAddressWidgetHighlightTransparent, other.editAddressWidgetHighlightTransparent) && const DeepCollectionEquality().equals( - editAddressWidgetPadding1, other.editAddressWidgetPadding1) && + editAddressWidgetSplashTransparent, + other.editAddressWidgetSplashTransparent) && const DeepCollectionEquality().equals( - editAddressWidgetPadding2, other.editAddressWidgetPadding2) && - const DeepCollectionEquality().equals(editAddressWidgetPadding3, other.editAddressWidgetPadding3) && - const DeepCollectionEquality().equals(editAddressWidgetPadding4, other.editAddressWidgetPadding4) && - const DeepCollectionEquality().equals(editAddressWidgetSpacingXS, other.editAddressWidgetSpacingXS) && - const DeepCollectionEquality().equals(editAddressWidgetSplashTransparent, other.editAddressWidgetSplashTransparent) && - const DeepCollectionEquality().equals(editPenIcon, other.editPenIcon) && - const DeepCollectionEquality().equals(green, other.green) && - const DeepCollectionEquality().equals(infoCircleIcon, other.infoCircleIcon) && - const DeepCollectionEquality().equals(mediumWhite, other.mediumWhite) && - const DeepCollectionEquality().equals(permanentAddressBlueLightColor, other.permanentAddressBlueLightColor) && + editAddressPageOuterMostPadding, + other.editAddressPageOuterMostPadding) && + const DeepCollectionEquality().equals( + editAddressPageOnAddressSavedPadding, + other.editAddressPageOnAddressSavedPadding) && + const DeepCollectionEquality().equals( + editAddressPageErrorPanelPadding, other.editAddressPageErrorPanelPadding) && const DeepCollectionEquality().equals(permanentAddressPadding1, other.permanentAddressPadding1) && const DeepCollectionEquality().equals(permanentAddressPadding2, other.permanentAddressPadding2) && const DeepCollectionEquality().equals(permanentAddressPadding3, other.permanentAddressPadding3) && const DeepCollectionEquality().equals(permanentAddressPadding4, other.permanentAddressPadding4) && - const DeepCollectionEquality().equals(spacingL, other.spacingL) && - const DeepCollectionEquality().equals(spacingM, other.spacingM) && - const DeepCollectionEquality().equals(spacingS, other.spacingS) && - const DeepCollectionEquality().equals(spacingXL, other.spacingXL) && - const DeepCollectionEquality().equals(spacingXS, other.spacingXS) && - const DeepCollectionEquality().equals(spacingXSS, other.spacingXSS) && - const DeepCollectionEquality().equals(spacingXXL, other.spacingXXL) && - const DeepCollectionEquality().equals(spacingXXXL, other.spacingXXXL) && - const DeepCollectionEquality().equals(titleBold, other.titleBold) && - const DeepCollectionEquality().equals(white, other.white)); + const DeepCollectionEquality().equals(editAddressWidgetPadding1, other.editAddressWidgetPadding1) && + const DeepCollectionEquality().equals(editAddressWidgetPadding2, other.editAddressWidgetPadding2) && + const DeepCollectionEquality().equals(editAddressWidgetPadding3, other.editAddressWidgetPadding3) && + const DeepCollectionEquality().equals(editAddressWidgetPadding4, other.editAddressWidgetPadding4) && + const DeepCollectionEquality().equals(editPenIcon, other.editPenIcon) && + const DeepCollectionEquality().equals(infoCircleIcon, other.infoCircleIcon)); } @override int get hashCode { return Object.hashAll([ runtimeType.hashCode, + const DeepCollectionEquality().hash(spacingM), + const DeepCollectionEquality().hash(spacingXSS), + const DeepCollectionEquality().hash(spacingXS), + const DeepCollectionEquality().hash(editAddressWidgetSpacingXS), const DeepCollectionEquality().hash(addressWidgetSpacingXS), - const DeepCollectionEquality().hash(black), - const DeepCollectionEquality().hash(blue), + const DeepCollectionEquality().hash(spacingS), + const DeepCollectionEquality().hash(spacingL), + const DeepCollectionEquality().hash(spacingXL), + const DeepCollectionEquality().hash(spacingXXL), + const DeepCollectionEquality().hash(spacingXXXL), const DeepCollectionEquality().hash(captionBold), const DeepCollectionEquality().hash(descriptionThin), - const DeepCollectionEquality().hash(disabledFilledButtonBackgroundColor), - const DeepCollectionEquality().hash(editAddressPageBackgroundColor), - const DeepCollectionEquality().hash(editAddressPageErrorPanelPadding), - const DeepCollectionEquality().hash(editAddressPageOnAddressSavedPadding), - const DeepCollectionEquality().hash(editAddressPageOuterMostPadding), + const DeepCollectionEquality().hash(titleBold), + const DeepCollectionEquality().hash(white), + const DeepCollectionEquality().hash(black), const DeepCollectionEquality().hash(editAddressWidgetColor), + const DeepCollectionEquality().hash(mediumWhite), + const DeepCollectionEquality().hash(green), + const DeepCollectionEquality().hash(blue), + const DeepCollectionEquality().hash(editAddressPageBackgroundColor), + const DeepCollectionEquality().hash(permanentAddressBlueLightColor), + const DeepCollectionEquality().hash(disabledFilledButtonBackgroundColor), const DeepCollectionEquality() .hash(editAddressWidgetHighlightTransparent), + const DeepCollectionEquality().hash(editAddressWidgetSplashTransparent), + const DeepCollectionEquality().hash(editAddressPageOuterMostPadding), + const DeepCollectionEquality().hash(editAddressPageOnAddressSavedPadding), + const DeepCollectionEquality().hash(editAddressPageErrorPanelPadding), + const DeepCollectionEquality().hash(permanentAddressPadding1), + const DeepCollectionEquality().hash(permanentAddressPadding2), + const DeepCollectionEquality().hash(permanentAddressPadding3), + const DeepCollectionEquality().hash(permanentAddressPadding4), const DeepCollectionEquality().hash(editAddressWidgetPadding1), const DeepCollectionEquality().hash(editAddressWidgetPadding2), const DeepCollectionEquality().hash(editAddressWidgetPadding3), const DeepCollectionEquality().hash(editAddressWidgetPadding4), - const DeepCollectionEquality().hash(editAddressWidgetSpacingXS), - const DeepCollectionEquality().hash(editAddressWidgetSplashTransparent), const DeepCollectionEquality().hash(editPenIcon), - const DeepCollectionEquality().hash(green), const DeepCollectionEquality().hash(infoCircleIcon), - const DeepCollectionEquality().hash(mediumWhite), - const DeepCollectionEquality().hash(permanentAddressBlueLightColor), - const DeepCollectionEquality().hash(permanentAddressPadding1), - const DeepCollectionEquality().hash(permanentAddressPadding2), - const DeepCollectionEquality().hash(permanentAddressPadding3), - const DeepCollectionEquality().hash(permanentAddressPadding4), - const DeepCollectionEquality().hash(spacingL), - const DeepCollectionEquality().hash(spacingM), - const DeepCollectionEquality().hash(spacingS), - const DeepCollectionEquality().hash(spacingXL), - const DeepCollectionEquality().hash(spacingXS), - const DeepCollectionEquality().hash(spacingXSS), - const DeepCollectionEquality().hash(spacingXXL), - const DeepCollectionEquality().hash(spacingXXXL), - const DeepCollectionEquality().hash(titleBold), - const DeepCollectionEquality().hash(white), ]); } } diff --git a/packages/widget_toolkit/lib/src/lib_item_picker/theme/item_picker_theme.dart b/packages/widget_toolkit/lib/src/lib_item_picker/theme/item_picker_theme.dart index 703d3606..b2b67834 100644 --- a/packages/widget_toolkit/lib/src/lib_item_picker/theme/item_picker_theme.dart +++ b/packages/widget_toolkit/lib/src/lib_item_picker/theme/item_picker_theme.dart @@ -16,24 +16,15 @@ class ItemPickerTheme extends ThemeExtension required this.footerPadding, }); - @override - final EdgeInsets titlePadding; - @override - final TextStyle titleStyle; - @override - final EdgeInsets errorPadding; - @override - final EdgeInsets contentListPadding; - @override - final EdgeInsets footerPadding; + /// region Themes ItemPickerTheme.light() - : titlePadding = EdgeInsets.only( + : contentListPadding = EdgeInsets.zero, + titlePadding = EdgeInsets.only( bottom: WidgetToolkitDesignSystem.light().spacings.m, left: WidgetToolkitDesignSystem.light().spacings.xs), titleStyle = WidgetToolkitDesignSystem.light().typography.titleStyle, errorPadding = EdgeInsets.zero, - contentListPadding = EdgeInsets.zero, footerPadding = EdgeInsets.only(top: WidgetToolkitDesignSystem.light().spacings.m); @@ -46,6 +37,19 @@ class ItemPickerTheme extends ThemeExtension contentListPadding = EdgeInsets.zero, footerPadding = EdgeInsets.only(top: WidgetToolkitDesignSystem.dark().spacings.m); + + /// endregion + + @override + final EdgeInsets titlePadding; + @override + final TextStyle titleStyle; + @override + final EdgeInsets errorPadding; + @override + final EdgeInsets contentListPadding; + @override + final EdgeInsets footerPadding; } extension ItemPickerThemeContextExtension on BuildContext { diff --git a/packages/widget_toolkit/lib/src/lib_language_picker/theme/language_picker_theme.dart b/packages/widget_toolkit/lib/src/lib_language_picker/theme/language_picker_theme.dart index 10dc13aa..2e494f81 100644 --- a/packages/widget_toolkit/lib/src/lib_language_picker/theme/language_picker_theme.dart +++ b/packages/widget_toolkit/lib/src/lib_language_picker/theme/language_picker_theme.dart @@ -9,8 +9,6 @@ part 'language_picker_theme.tailor.dart'; @TailorMixinComponent() class LanguagePickerTheme extends ThemeExtension with _$LanguagePickerThemeTailorMixin { - /// region Constructors - const LanguagePickerTheme({ required this.descriptionThin, required this.titleBold, @@ -41,6 +39,67 @@ class LanguagePickerTheme extends ThemeExtension required this.messagePanelErrorEdgeInsets, }); + @override + final EdgeInsets changeLanguagePadding; + @override + final EdgeInsets chooseLanguagePadding; + @override + final EdgeInsets chooseLanguageActiveEdgeInsets; + @override + final EdgeInsets chooseLanguageInactiveEdgeInsets; + + @override + final TextStyle descriptionThin; + @override + final TextStyle titleBold; + @override + final TextStyle languageCodeInLanguagePickerTitleBold; + + @override + final double spacingS; + @override + final double changeLanguageSizedBox; + @override + final double spacingM; + @override + final double spacingXXXXL1; + @override + final EdgeInsets messagePanelErrorEdgeInsets; + + @override + final Color activeButtonLanguageTextColor; + @override + final Color disabledFilledButtonBackgroundColor; + @override + final Color activeGradientEnd; + @override + final Color languageGradientStart; + @override + final Color languageGradientEnd; + @override + final Color filledButtonBackgroundColorDisabled; + @override + final Color buttonTextColor; + @override + final Color filledButtonTextColorDisabled; + @override + final Color textColorWhite; + @override + final Color boxShadowColor; + @override + final Color bodyTextColor2; + @override + final Color buttonBlueGradientEnd; + @override + final Color elevatedButtonBackgroundColor; + @override + final Color outlineButtonBackgroundColor; + + @override + final SvgFile checkIcon; + + /// region Themes + LanguagePickerTheme.light() : changeLanguagePadding = EdgeInsets.zero, chooseLanguagePadding = const EdgeInsets.only(bottom: 8), @@ -128,65 +187,6 @@ class LanguagePickerTheme extends ThemeExtension checkIcon = WidgetToolkitDesignSystem.light().icons.checkIcon; /// endregion - - @override - final EdgeInsets changeLanguagePadding; - @override - final EdgeInsets chooseLanguagePadding; - @override - final EdgeInsets chooseLanguageActiveEdgeInsets; - @override - final EdgeInsets chooseLanguageInactiveEdgeInsets; - - @override - final TextStyle descriptionThin; - @override - final TextStyle titleBold; - @override - final TextStyle languageCodeInLanguagePickerTitleBold; - - @override - final double spacingS; - @override - final double changeLanguageSizedBox; - @override - final double spacingM; - @override - final double spacingXXXXL1; - @override - final EdgeInsets messagePanelErrorEdgeInsets; - - @override - final Color activeButtonLanguageTextColor; - @override - final Color disabledFilledButtonBackgroundColor; - @override - final Color activeGradientEnd; - @override - final Color languageGradientStart; - @override - final Color languageGradientEnd; - @override - final Color filledButtonBackgroundColorDisabled; - @override - final Color buttonTextColor; - @override - final Color filledButtonTextColorDisabled; - @override - final Color textColorWhite; - @override - final Color boxShadowColor; - @override - final Color bodyTextColor2; - @override - final Color buttonBlueGradientEnd; - @override - final Color elevatedButtonBackgroundColor; - @override - final Color outlineButtonBackgroundColor; - - @override - final SvgFile checkIcon; } extension LanguagePickerThemeContextExtension on BuildContext { diff --git a/packages/widget_toolkit/lib/src/lib_search_picker/theme/search_picker_theme.dart b/packages/widget_toolkit/lib/src/lib_search_picker/theme/search_picker_theme.dart index 3662f148..1c40d9ee 100644 --- a/packages/widget_toolkit/lib/src/lib_search_picker/theme/search_picker_theme.dart +++ b/packages/widget_toolkit/lib/src/lib_search_picker/theme/search_picker_theme.dart @@ -5,35 +5,48 @@ import '../../base/theme/design_system/widget_toolkit_design_system.dart'; part 'search_picker_theme.tailor.dart'; -@Tailor(themeGetter: ThemeGetter.none) -class _$SearchPickerTheme { - /// region SearchPickerPage - - static List titlePadding = [ - EdgeInsets.only( - bottom: WidgetToolkitDesignSystem.light().spacings.xs, - left: WidgetToolkitDesignSystem.light().spacings.xs), - EdgeInsets.only( - bottom: WidgetToolkitDesignSystem.light().spacings.xs, - left: WidgetToolkitDesignSystem.light().spacings.xs), - ]; - - static List titleStyle = [ - WidgetToolkitDesignSystem.light().typography.titleStyle, - WidgetToolkitDesignSystem.dark().typography.titleStyle, - ]; - - static List searchFieldOuterEdgeInsets = [ - WidgetToolkitDesignSystem.light().spacings.mediumEdgeInsets, - WidgetToolkitDesignSystem.dark().spacings.mediumEdgeInsets, - ]; - - static List errorEdgeInsets = [ - WidgetToolkitDesignSystem.light().spacings.mediumEdgeInsets, - WidgetToolkitDesignSystem.dark().spacings.mediumEdgeInsets, - ]; +@TailorMixinComponent() +class SearchPickerTheme extends ThemeExtension + with _$SearchPickerThemeTailorMixin { + SearchPickerTheme({ + required this.titlePadding, + required this.titleStyle, + required this.searchFieldOuterEdgeInsets, + required this.errorEdgeInsets, + }); + + /// region Themes + + SearchPickerTheme.light() + : titlePadding = EdgeInsets.only( + bottom: WidgetToolkitDesignSystem.light().spacings.xs, + left: WidgetToolkitDesignSystem.light().spacings.xs), + titleStyle = WidgetToolkitDesignSystem.light().typography.titleStyle, + searchFieldOuterEdgeInsets = + WidgetToolkitDesignSystem.light().spacings.mediumEdgeInsets, + errorEdgeInsets = + WidgetToolkitDesignSystem.light().spacings.mediumEdgeInsets; + + SearchPickerTheme.dark() + : titlePadding = EdgeInsets.only( + bottom: WidgetToolkitDesignSystem.light().spacings.xs, + left: WidgetToolkitDesignSystem.light().spacings.xs), + titleStyle = WidgetToolkitDesignSystem.dark().typography.titleStyle, + searchFieldOuterEdgeInsets = + WidgetToolkitDesignSystem.dark().spacings.mediumEdgeInsets, + errorEdgeInsets = + WidgetToolkitDesignSystem.dark().spacings.mediumEdgeInsets; /// endregion + + @override + final EdgeInsets titlePadding; + @override + final TextStyle titleStyle; + @override + final EdgeInsets searchFieldOuterEdgeInsets; + @override + final EdgeInsets errorEdgeInsets; } extension SearchPickerThemeContextExtension on BuildContext { diff --git a/packages/widget_toolkit/lib/src/lib_search_picker/theme/search_picker_theme.tailor.dart b/packages/widget_toolkit/lib/src/lib_search_picker/theme/search_picker_theme.tailor.dart index f7aab0e2..513cd218 100644 --- a/packages/widget_toolkit/lib/src/lib_search_picker/theme/search_picker_theme.tailor.dart +++ b/packages/widget_toolkit/lib/src/lib_search_picker/theme/search_picker_theme.tailor.dart @@ -8,55 +8,25 @@ part of 'search_picker_theme.dart'; // TailorAnnotationsGenerator // ************************************************************************** -class SearchPickerTheme extends ThemeExtension { - const SearchPickerTheme({ - required this.errorEdgeInsets, - required this.searchFieldOuterEdgeInsets, - required this.titlePadding, - required this.titleStyle, - }); - - final EdgeInsets errorEdgeInsets; - final EdgeInsets searchFieldOuterEdgeInsets; - - /// region SearchPickerPage - final EdgeInsets titlePadding; - final TextStyle titleStyle; - - static final SearchPickerTheme light = SearchPickerTheme( - errorEdgeInsets: _$SearchPickerTheme.errorEdgeInsets[0], - searchFieldOuterEdgeInsets: - _$SearchPickerTheme.searchFieldOuterEdgeInsets[0], - titlePadding: _$SearchPickerTheme.titlePadding[0], - titleStyle: _$SearchPickerTheme.titleStyle[0], - ); - - static final SearchPickerTheme dark = SearchPickerTheme( - errorEdgeInsets: _$SearchPickerTheme.errorEdgeInsets[1], - searchFieldOuterEdgeInsets: - _$SearchPickerTheme.searchFieldOuterEdgeInsets[1], - titlePadding: _$SearchPickerTheme.titlePadding[1], - titleStyle: _$SearchPickerTheme.titleStyle[1], - ); - - static final themes = [ - light, - dark, - ]; +mixin _$SearchPickerThemeTailorMixin on ThemeExtension { + EdgeInsets get titlePadding; + TextStyle get titleStyle; + EdgeInsets get searchFieldOuterEdgeInsets; + EdgeInsets get errorEdgeInsets; @override SearchPickerTheme copyWith({ - EdgeInsets? errorEdgeInsets, - EdgeInsets? searchFieldOuterEdgeInsets, EdgeInsets? titlePadding, TextStyle? titleStyle, + EdgeInsets? searchFieldOuterEdgeInsets, + EdgeInsets? errorEdgeInsets, }) { return SearchPickerTheme( - errorEdgeInsets: errorEdgeInsets ?? this.errorEdgeInsets, - searchFieldOuterEdgeInsets: - searchFieldOuterEdgeInsets ?? this.searchFieldOuterEdgeInsets, titlePadding: titlePadding ?? this.titlePadding, titleStyle: titleStyle ?? this.titleStyle, + searchFieldOuterEdgeInsets: + searchFieldOuterEdgeInsets ?? this.searchFieldOuterEdgeInsets, + errorEdgeInsets: errorEdgeInsets ?? this.errorEdgeInsets, ); } @@ -65,12 +35,12 @@ class SearchPickerTheme extends ThemeExtension { covariant ThemeExtension? other, double t) { if (other is! SearchPickerTheme) return this as SearchPickerTheme; return SearchPickerTheme( - errorEdgeInsets: t < 0.5 ? errorEdgeInsets : other.errorEdgeInsets, + titlePadding: t < 0.5 ? titlePadding : other.titlePadding, + titleStyle: TextStyle.lerp(titleStyle, other.titleStyle, t)!, searchFieldOuterEdgeInsets: t < 0.5 ? searchFieldOuterEdgeInsets : other.searchFieldOuterEdgeInsets, - titlePadding: t < 0.5 ? titlePadding : other.titlePadding, - titleStyle: TextStyle.lerp(titleStyle, other.titleStyle, t)!, + errorEdgeInsets: t < 0.5 ? errorEdgeInsets : other.errorEdgeInsets, ); } @@ -80,23 +50,23 @@ class SearchPickerTheme extends ThemeExtension { (other.runtimeType == runtimeType && other is SearchPickerTheme && const DeepCollectionEquality() - .equals(errorEdgeInsets, other.errorEdgeInsets) && + .equals(titlePadding, other.titlePadding) && + const DeepCollectionEquality() + .equals(titleStyle, other.titleStyle) && const DeepCollectionEquality().equals( searchFieldOuterEdgeInsets, other.searchFieldOuterEdgeInsets) && const DeepCollectionEquality() - .equals(titlePadding, other.titlePadding) && - const DeepCollectionEquality() - .equals(titleStyle, other.titleStyle)); + .equals(errorEdgeInsets, other.errorEdgeInsets)); } @override int get hashCode { return Object.hash( runtimeType.hashCode, - const DeepCollectionEquality().hash(errorEdgeInsets), - const DeepCollectionEquality().hash(searchFieldOuterEdgeInsets), const DeepCollectionEquality().hash(titlePadding), const DeepCollectionEquality().hash(titleStyle), + const DeepCollectionEquality().hash(searchFieldOuterEdgeInsets), + const DeepCollectionEquality().hash(errorEdgeInsets), ); } } diff --git a/packages/widget_toolkit/lib/src/lib_text_field_dialog/theme/text_field_dialog_theme.dart b/packages/widget_toolkit/lib/src/lib_text_field_dialog/theme/text_field_dialog_theme.dart index de0734c4..d0260a34 100644 --- a/packages/widget_toolkit/lib/src/lib_text_field_dialog/theme/text_field_dialog_theme.dart +++ b/packages/widget_toolkit/lib/src/lib_text_field_dialog/theme/text_field_dialog_theme.dart @@ -6,333 +6,371 @@ import '../../base/theme/design_system/widget_toolkit_design_system.dart'; part 'text_field_dialog_theme.tailor.dart'; -@Tailor(themeGetter: ThemeGetter.none) -class _$TextFieldDialogTheme { - //TODO: The properties of the theme extension should be almost always specific just like in the example below. - // The colors, sizes etc from design system should be used to fill in the values (take for reference WidgetToolkitTheme, ItemPickerTheme, SearchPickerTheme). - - /// region EditFieldWidget - static List editFieldSuccessBackground = [ - WidgetToolkitDesignSystem.light().colors.greenLight, - WidgetToolkitDesignSystem.dark().colors.green, - ]; - - static List editFieldRegularBackground = [ - WidgetToolkitDesignSystem.light().colors.mediumWhite, - WidgetToolkitDesignSystem.dark().colors.black45, - ]; - - static List editFieldBorderRadius = [ - WidgetToolkitDesignSystem.light().spacings.xss, - WidgetToolkitDesignSystem.light().spacings.xss, - ]; +@TailorMixinComponent() +class TextFieldDialogTheme extends ThemeExtension + with _$TextFieldDialogThemeTailorMixin { + TextFieldDialogTheme({ + required this.editFieldSuccessBackground, + required this.editFieldRegularBackground, + required this.inputTextFieldSuccessBackground, + required this.inputTextFieldRegularBackground, + required this.labelBoxOptionalBackground, + required this.labelBoxFilledBackground, + required this.editFieldBorderRadius, + required this.spacingXS, + required this.spacingXSS, + required this.spacingS, + required this.spacingM, + required this.spacingL, + required this.spacingXL, + required this.spacingXXXS, + required this.descriptionThin, + required this.titleBold, + required this.descriptionBold, + required this.captionBold, + required this.smallThin, + required this.black, + required this.defaultWhite, + required this.white, + required this.blue, + required this.disabledFilledButtonBackgroundColor, + required this.mediumWhite, + required this.gray, + required this.green, + required this.redLight, + required this.orangeLight, + required this.orange, + required this.transparent, + required this.greenLight, + required this.red, + required this.mediumBlack, + required this.closeIcon, + required this.dangerIcon, + required this.addIcon, + required this.addDisabledIcon, + required this.arrowRightSquareIcon, + required this.editPenIcon, + required this.infoCircleIcon, + required this.loadingIcon, + required this.tickCircleSuccessIcon, + required this.textFieldDialog2, + required this.textFieldDialog4, + required this.textFieldDialog3, + required this.labeledBoxWidgetPadding1, + required this.labeledBoxWidgetPadding2, + required this.labeledBoxWidgetPadding3, + required this.inputTextFieldPadding1, + required this.inputTextFieldPadding2, + required this.inputTextFieldPadding3, + required this.inputTextFieldPaddingLoading, + required this.inputTextFieldPaddingSuccess, + required this.inputTextFieldPaddingWarning, + required this.inputTextFieldPaddingError, + }); + + /// region Theme + + TextFieldDialogTheme.light() + : editFieldSuccessBackground = + WidgetToolkitDesignSystem.light().colors.greenLight, + editFieldRegularBackground = + WidgetToolkitDesignSystem.light().colors.mediumWhite, + inputTextFieldSuccessBackground = + WidgetToolkitDesignSystem.light().colors.greenLight, + inputTextFieldRegularBackground = + WidgetToolkitDesignSystem.light().colors.mediumWhite, + labelBoxOptionalBackground = + WidgetToolkitDesignSystem.light().colors.white, + labelBoxFilledBackground = + WidgetToolkitDesignSystem.light().colors.mediumWhite, + editFieldBorderRadius = WidgetToolkitDesignSystem.light().spacings.xss, + spacingXS = WidgetToolkitDesignSystem.light().spacings.xs, + spacingXSS = WidgetToolkitDesignSystem.light().spacings.xss, + spacingS = WidgetToolkitDesignSystem.light().spacings.s, + spacingM = WidgetToolkitDesignSystem.light().spacings.m, + spacingL = WidgetToolkitDesignSystem.light().spacings.l, + spacingXL = WidgetToolkitDesignSystem.light().spacings.xl, + spacingXXXS = WidgetToolkitDesignSystem.light().spacings.xxxs, + descriptionThin = + WidgetToolkitDesignSystem.light().typography.descriptionThin, + titleBold = WidgetToolkitDesignSystem.light().typography.titleBold, + descriptionBold = + WidgetToolkitDesignSystem.light().typography.descriptionBold, + captionBold = WidgetToolkitDesignSystem.light().typography.captionBold, + smallThin = WidgetToolkitDesignSystem.light().typography.smallThin, + black = WidgetToolkitDesignSystem.light().colors.textFieldDialogBlack, + defaultWhite = WidgetToolkitDesignSystem.light().colors.white, + white = WidgetToolkitDesignSystem.light().colors.textFieldDialogWhite, + blue = WidgetToolkitDesignSystem.light().colors.darkBlue, + disabledFilledButtonBackgroundColor = + WidgetToolkitDesignSystem.light().colors.gray, + mediumWhite = WidgetToolkitDesignSystem.light().colors.lightGray, + gray = WidgetToolkitDesignSystem.light().colors.gray, + green = WidgetToolkitDesignSystem.light().colors.darkGreen, + redLight = WidgetToolkitDesignSystem.light().colors.lightRed, + orangeLight = WidgetToolkitDesignSystem.light().colors.orangeLight, + orange = WidgetToolkitDesignSystem.light().colors.orange, + transparent = + WidgetToolkitDesignSystem.light().colors.textFieldDialogTransparent, + greenLight = WidgetToolkitDesignSystem.light().colors.greenLight, + red = WidgetToolkitDesignSystem.light().colors.red, + mediumBlack = WidgetToolkitDesignSystem.light().colors.mediumBlack, + closeIcon = WidgetToolkitDesignSystem.dark().icons.closeIcon, + dangerIcon = WidgetToolkitDesignSystem.dark().icons.dangerIcon, + addIcon = WidgetToolkitDesignSystem.dark().icons.addIcon, + addDisabledIcon = + WidgetToolkitDesignSystem.dark().icons.addDisabledIcon, + arrowRightSquareIcon = + WidgetToolkitDesignSystem.dark().icons.arrowRightSquareIcon, + editPenIcon = WidgetToolkitDesignSystem.dark().icons.editPenIcon, + infoCircleIcon = WidgetToolkitDesignSystem.dark().icons.infoCircleIcon, + loadingIcon = WidgetToolkitDesignSystem.dark().icons.loadingIcon, + tickCircleSuccessIcon = + WidgetToolkitDesignSystem.dark().icons.tickCircleSuccessIcon, + textFieldDialog2 = EdgeInsets.zero, + textFieldDialog4 = EdgeInsets.only( + top: WidgetToolkitDesignSystem.light().spacings.xl, + bottom: WidgetToolkitDesignSystem.light().spacings.xxxxs, + ), + textFieldDialog3 = EdgeInsets.only( + left: WidgetToolkitDesignSystem.light().spacings.xs, + bottom: WidgetToolkitDesignSystem.light().spacings.m, + ), + labeledBoxWidgetPadding1 = EdgeInsets.symmetric( + vertical: WidgetToolkitDesignSystem.light().spacings.m, + horizontal: WidgetToolkitDesignSystem.light().spacings.s, + ), + labeledBoxWidgetPadding2 = EdgeInsets.only( + right: WidgetToolkitDesignSystem.dark().spacings.xs), + labeledBoxWidgetPadding3 = EdgeInsets.only( + right: WidgetToolkitDesignSystem.light().spacings.m), + inputTextFieldPadding1 = EdgeInsets.only( + left: WidgetToolkitDesignSystem.light().spacings.m, + top: WidgetToolkitDesignSystem.light().spacings.xxxs, + ), + inputTextFieldPadding2 = EdgeInsets.only( + right: WidgetToolkitDesignSystem.light().spacings.xs), + inputTextFieldPadding3 = EdgeInsets.only( + right: WidgetToolkitDesignSystem.light().spacings.xs), + inputTextFieldPaddingLoading = EdgeInsets.only( + right: WidgetToolkitDesignSystem.light().spacings.s), + inputTextFieldPaddingSuccess = EdgeInsets.only( + right: WidgetToolkitDesignSystem.light().spacings.s), + inputTextFieldPaddingWarning = EdgeInsets.only( + right: WidgetToolkitDesignSystem.light().spacings.s), + inputTextFieldPaddingError = EdgeInsets.only( + right: WidgetToolkitDesignSystem.light().spacings.s); + + TextFieldDialogTheme.dark() + : editFieldSuccessBackground = + WidgetToolkitDesignSystem.dark().colors.green, + editFieldRegularBackground = + WidgetToolkitDesignSystem.dark().colors.black45, + inputTextFieldSuccessBackground = + WidgetToolkitDesignSystem.dark().colors.green, + inputTextFieldRegularBackground = + WidgetToolkitDesignSystem.dark().colors.darkGray, + labelBoxOptionalBackground = + WidgetToolkitDesignSystem.dark().colors.darkGray, + labelBoxFilledBackground = + WidgetToolkitDesignSystem.dark().colors.darkGray, + editFieldBorderRadius = WidgetToolkitDesignSystem.dark().spacings.xss, + spacingXS = WidgetToolkitDesignSystem.dark().spacings.xs, + spacingXSS = WidgetToolkitDesignSystem.dark().spacings.xss, + spacingS = WidgetToolkitDesignSystem.dark().spacings.s, + spacingM = WidgetToolkitDesignSystem.dark().spacings.m, + spacingL = WidgetToolkitDesignSystem.dark().spacings.l, + spacingXL = WidgetToolkitDesignSystem.dark().spacings.xl, + spacingXXXS = WidgetToolkitDesignSystem.dark().spacings.xxxs, + descriptionThin = + WidgetToolkitDesignSystem.dark().typography.descriptionThin, + titleBold = WidgetToolkitDesignSystem.dark().typography.titleBold, + descriptionBold = + WidgetToolkitDesignSystem.dark().typography.descriptionBold, + captionBold = WidgetToolkitDesignSystem.dark().typography.captionBold, + smallThin = WidgetToolkitDesignSystem.dark().typography.smallThin, + black = WidgetToolkitDesignSystem.dark().colors.textFieldDialogBlack, + defaultWhite = WidgetToolkitDesignSystem.dark().colors.white, + white = WidgetToolkitDesignSystem.dark().colors.textFieldDialogWhite, + blue = WidgetToolkitDesignSystem.dark().colors.blue, + disabledFilledButtonBackgroundColor = + WidgetToolkitDesignSystem.dark().colors.gray, + mediumWhite = WidgetToolkitDesignSystem.dark().colors.lightGray, + gray = WidgetToolkitDesignSystem.dark().colors.gray, + green = WidgetToolkitDesignSystem.dark().colors.darkGreen, + redLight = WidgetToolkitDesignSystem.dark().colors.lightRed, + orangeLight = WidgetToolkitDesignSystem.dark().colors.orangeLight, + orange = WidgetToolkitDesignSystem.dark().colors.orange, + transparent = + WidgetToolkitDesignSystem.dark().colors.textFieldDialogTransparent, + greenLight = WidgetToolkitDesignSystem.dark().colors.greenLight, + red = WidgetToolkitDesignSystem.dark().colors.red, + mediumBlack = WidgetToolkitDesignSystem.dark().colors.mediumBlack, + closeIcon = WidgetToolkitDesignSystem.light().icons.closeIcon, + dangerIcon = WidgetToolkitDesignSystem.light().icons.dangerIcon, + addIcon = WidgetToolkitDesignSystem.light().icons.addIcon, + addDisabledIcon = + WidgetToolkitDesignSystem.light().icons.addDisabledIcon, + arrowRightSquareIcon = + WidgetToolkitDesignSystem.light().icons.arrowRightSquareIcon, + editPenIcon = WidgetToolkitDesignSystem.light().icons.editPenIcon, + infoCircleIcon = WidgetToolkitDesignSystem.light().icons.infoCircleIcon, + loadingIcon = WidgetToolkitDesignSystem.light().icons.loadingIcon, + tickCircleSuccessIcon = + WidgetToolkitDesignSystem.light().icons.tickCircleSuccessIcon, + textFieldDialog2 = EdgeInsets.zero, + textFieldDialog4 = EdgeInsets.only( + top: WidgetToolkitDesignSystem.light().spacings.xl, + bottom: WidgetToolkitDesignSystem.light().spacings.xxxxs, + ), + textFieldDialog3 = EdgeInsets.only( + left: WidgetToolkitDesignSystem.dark().spacings.xs, + bottom: WidgetToolkitDesignSystem.dark().spacings.m, + ), + labeledBoxWidgetPadding1 = EdgeInsets.symmetric( + vertical: WidgetToolkitDesignSystem.dark().spacings.m, + horizontal: WidgetToolkitDesignSystem.dark().spacings.s, + ), + labeledBoxWidgetPadding2 = EdgeInsets.only( + right: WidgetToolkitDesignSystem.dark().spacings.xs), + labeledBoxWidgetPadding3 = + EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.m), + inputTextFieldPadding1 = EdgeInsets.only( + left: WidgetToolkitDesignSystem.dark().spacings.m, + top: WidgetToolkitDesignSystem.dark().spacings.xxxs, + ), + inputTextFieldPadding2 = EdgeInsets.only( + right: WidgetToolkitDesignSystem.dark().spacings.xs), + inputTextFieldPadding3 = EdgeInsets.only( + right: WidgetToolkitDesignSystem.dark().spacings.xs), + inputTextFieldPaddingLoading = + EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.s), + inputTextFieldPaddingSuccess = + EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.s), + inputTextFieldPaddingWarning = + EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.s), + inputTextFieldPaddingError = + EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.s); /// endregion - /// region InputTextField - static List inputTextFieldSuccessBackground = [ - WidgetToolkitDesignSystem.light().colors.greenLight, - WidgetToolkitDesignSystem.dark().colors.green, - ]; - - static List inputTextFieldRegularBackground = [ - WidgetToolkitDesignSystem.light().colors.mediumWhite, - WidgetToolkitDesignSystem.dark().colors.darkGray, - ]; - - /// endregion - - /// region LabelBoxWidget - static List labelBoxOptionalBackground = [ - WidgetToolkitDesignSystem.light().colors.white, - WidgetToolkitDesignSystem.dark().colors.darkGray, - ]; - - static List labelBoxFilledBackground = [ - WidgetToolkitDesignSystem.light().colors.mediumWhite, - WidgetToolkitDesignSystem.dark().colors.darkGray, - ]; - - /// endregion - - /// region spacings - static List spacingXS = [ - WidgetToolkitDesignSystem.light().spacings.xs, - WidgetToolkitDesignSystem.dark().spacings.xs, - ]; - - static List spacingXSS = [ - WidgetToolkitDesignSystem.light().spacings.xss, - WidgetToolkitDesignSystem.dark().spacings.xss, - ]; - static List spacingS = [ - WidgetToolkitDesignSystem.light().spacings.s, - WidgetToolkitDesignSystem.dark().spacings.s, - ]; - - static List spacingM = [ - WidgetToolkitDesignSystem.light().spacings.m, - WidgetToolkitDesignSystem.dark().spacings.m, - ]; - static List spacingL = [ - WidgetToolkitDesignSystem.light().spacings.l, - WidgetToolkitDesignSystem.dark().spacings.l, - ]; - - static List spacingXL = [ - WidgetToolkitDesignSystem.light().spacings.xl, - WidgetToolkitDesignSystem.dark().spacings.xl, - ]; - static List spacingXXXS = [ - WidgetToolkitDesignSystem.light().spacings.xxxs, - WidgetToolkitDesignSystem.dark().spacings.xxxs, - ]; - - ///endregion - /// region TextStyle - static List descriptionThin = [ - WidgetToolkitDesignSystem.light().typography.descriptionThin, - WidgetToolkitDesignSystem.dark().typography.descriptionThin, - ]; - - static List titleBold = [ - WidgetToolkitDesignSystem.light().typography.titleBold, - WidgetToolkitDesignSystem.dark().typography.titleBold, - ]; - - static List descriptionBold = [ - WidgetToolkitDesignSystem.light().typography.descriptionBold, - WidgetToolkitDesignSystem.dark().typography.descriptionBold, - ]; - - static List captionBold = [ - WidgetToolkitDesignSystem.light().typography.captionBold, - WidgetToolkitDesignSystem.dark().typography.captionBold, - ]; - - static List smallThin = [ - WidgetToolkitDesignSystem.light().typography.smallThin, - WidgetToolkitDesignSystem.dark().typography.smallThin, - ]; - - ///endregion - - ///region Color - static List black = [ - WidgetToolkitDesignSystem.light().colors.textFieldDialogBlack, - WidgetToolkitDesignSystem.dark().colors.textFieldDialogBlack, - ]; - - static List defaultWhite = [ - WidgetToolkitDesignSystem.light().colors.white, - WidgetToolkitDesignSystem.dark().colors.white, - ]; - - static List white = [ - WidgetToolkitDesignSystem.light().colors.textFieldDialogWhite, - WidgetToolkitDesignSystem.dark().colors.textFieldDialogWhite, - ]; - - static List blue = [ - WidgetToolkitDesignSystem.light().colors.darkBlue, - WidgetToolkitDesignSystem.dark().colors.blue, - ]; - - static List disabledFilledButtonBackgroundColor = [ - WidgetToolkitDesignSystem.light().colors.gray, - WidgetToolkitDesignSystem.dark().colors.gray, - ]; - - static List mediumWhite = [ - WidgetToolkitDesignSystem.light().colors.lightGray, - WidgetToolkitDesignSystem.dark().colors.lightGray, - ]; - - static List gray = [ - WidgetToolkitDesignSystem.light().colors.gray, - WidgetToolkitDesignSystem.dark().colors.gray, - ]; - - static List green = [ - WidgetToolkitDesignSystem.light().colors.darkGreen, - WidgetToolkitDesignSystem.dark().colors.darkGreen, - ]; - - static List redLight = [ - WidgetToolkitDesignSystem.light().colors.lightRed, - WidgetToolkitDesignSystem.dark().colors.lightRed, - ]; - - static List orangeLight = [ - WidgetToolkitDesignSystem.light().colors.orangeLight, - WidgetToolkitDesignSystem.dark().colors.orangeLight, - ]; - - static List orange = [ - WidgetToolkitDesignSystem.light().colors.orange, - WidgetToolkitDesignSystem.dark().colors.orange, - ]; - - static List transparent = [ - WidgetToolkitDesignSystem.light().colors.textFieldDialogTransparent, - WidgetToolkitDesignSystem.dark().colors.textFieldDialogTransparent, - ]; - - static List greenLight = [ - WidgetToolkitDesignSystem.light().colors.greenLight, - WidgetToolkitDesignSystem.dark().colors.greenLight, - ]; - - static List red = [ - WidgetToolkitDesignSystem.light().colors.red, - WidgetToolkitDesignSystem.dark().colors.red, - ]; - - static List mediumBlack = [ - WidgetToolkitDesignSystem.light().colors.mediumBlack, - WidgetToolkitDesignSystem.dark().colors.mediumBlack, - ]; - - ///endregion - - ///region SvgFile - static List closeIcon = [ - WidgetToolkitDesignSystem.dark().icons.closeIcon, - WidgetToolkitDesignSystem.light().icons.closeIcon, - ]; - - static List dangerIcon = [ - WidgetToolkitDesignSystem.dark().icons.dangerIcon, - WidgetToolkitDesignSystem.light().icons.dangerIcon, - ]; - - static List addIcon = [ - WidgetToolkitDesignSystem.dark().icons.addIcon, - WidgetToolkitDesignSystem.light().icons.addIcon, - ]; - - static List addDisabledIcon = [ - WidgetToolkitDesignSystem.dark().icons.addDisabledIcon, - WidgetToolkitDesignSystem.light().icons.addDisabledIcon, - ]; - - static List arrowRightSquareIcon = [ - WidgetToolkitDesignSystem.dark().icons.arrowRightSquareIcon, - WidgetToolkitDesignSystem.light().icons.arrowRightSquareIcon, - ]; - - static List editPenIcon = [ - WidgetToolkitDesignSystem.dark().icons.editPenIcon, - WidgetToolkitDesignSystem.light().icons.editPenIcon, - ]; - - static List infoCircleIcon = [ - WidgetToolkitDesignSystem.dark().icons.infoCircleIcon, - WidgetToolkitDesignSystem.light().icons.infoCircleIcon, - ]; - - static List loadingIcon = [ - WidgetToolkitDesignSystem.dark().icons.loadingIcon, - WidgetToolkitDesignSystem.light().icons.loadingIcon, - ]; - - static List tickCircleSuccessIcon = [ - WidgetToolkitDesignSystem.dark().icons.tickCircleSuccessIcon, - WidgetToolkitDesignSystem.light().icons.tickCircleSuccessIcon, - ]; - - ///endregion - ///region EdgeInsets - - static List textFieldDialog2 = [ - EdgeInsets.zero, - EdgeInsets.zero, - ]; - - static List textFieldDialog4 = [ - EdgeInsets.only( - top: WidgetToolkitDesignSystem.light().spacings.xl, - bottom: WidgetToolkitDesignSystem.light().spacings.xxxxs, - ), - EdgeInsets.only( - top: WidgetToolkitDesignSystem.light().spacings.xl, - bottom: WidgetToolkitDesignSystem.light().spacings.xxxxs, - ), - ]; - - static List textFieldDialog3 = [ - EdgeInsets.only( - left: WidgetToolkitDesignSystem.light().spacings.xs, - bottom: WidgetToolkitDesignSystem.light().spacings.m, - ), - EdgeInsets.only( - left: WidgetToolkitDesignSystem.dark().spacings.xs, - bottom: WidgetToolkitDesignSystem.dark().spacings.m, - ) - ]; - - static List labeledBoxWidgetPadding1 = [ - EdgeInsets.symmetric( - vertical: WidgetToolkitDesignSystem.light().spacings.m, - horizontal: WidgetToolkitDesignSystem.light().spacings.s, - ), - EdgeInsets.symmetric( - vertical: WidgetToolkitDesignSystem.dark().spacings.m, - horizontal: WidgetToolkitDesignSystem.dark().spacings.s, - ) - ]; - - static List labeledBoxWidgetPadding2 = [ - EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.xs), - EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.xs) - ]; - - static List labeledBoxWidgetPadding3 = [ - EdgeInsets.only(right: WidgetToolkitDesignSystem.light().spacings.m), - EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.m) - ]; - - static List inputTextFieldPadding1 = [ - EdgeInsets.only( - left: WidgetToolkitDesignSystem.light().spacings.m, - top: WidgetToolkitDesignSystem.light().spacings.xxxs, - ), - EdgeInsets.only( - left: WidgetToolkitDesignSystem.dark().spacings.m, - top: WidgetToolkitDesignSystem.dark().spacings.xxxs, - ) - ]; - static List inputTextFieldPadding2 = [ - EdgeInsets.only(right: WidgetToolkitDesignSystem.light().spacings.xs), - EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.xs) - ]; - - static List inputTextFieldPadding3 = [ - EdgeInsets.only(right: WidgetToolkitDesignSystem.light().spacings.xs), - EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.xs) - ]; - - static List inputTextFieldPaddingLoading = [ - EdgeInsets.only(right: WidgetToolkitDesignSystem.light().spacings.s), - EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.s) - ]; - - static List inputTextFieldPaddingSuccess = [ - EdgeInsets.only(right: WidgetToolkitDesignSystem.light().spacings.s), - EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.s) - ]; - - static List inputTextFieldPaddingWarning = [ - EdgeInsets.only(right: WidgetToolkitDesignSystem.light().spacings.s), - EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.s) - ]; - - static List inputTextFieldPaddingError = [ - EdgeInsets.only(right: WidgetToolkitDesignSystem.light().spacings.s), - EdgeInsets.only(right: WidgetToolkitDesignSystem.dark().spacings.s) - ]; - - ///endregion + @override + final Color editFieldSuccessBackground; + @override + final Color editFieldRegularBackground; + @override + final Color inputTextFieldSuccessBackground; + @override + final Color inputTextFieldRegularBackground; + @override + final Color labelBoxOptionalBackground; + @override + final Color labelBoxFilledBackground; + + @override + final double editFieldBorderRadius; + @override + final double spacingXS; + @override + final double spacingXSS; + @override + final double spacingS; + @override + final double spacingM; + @override + final double spacingL; + @override + final double spacingXL; + @override + final double spacingXXXS; + + @override + final TextStyle descriptionThin; + @override + final TextStyle titleBold; + @override + final TextStyle descriptionBold; + @override + final TextStyle captionBold; + @override + final TextStyle smallThin; + + @override + final Color black; + @override + final Color defaultWhite; + @override + final Color white; + @override + final Color blue; + @override + final Color disabledFilledButtonBackgroundColor; + @override + final Color mediumWhite; + @override + final Color gray; + @override + final Color green; + @override + final Color redLight; + @override + final Color orangeLight; + @override + final Color orange; + @override + final Color transparent; + @override + final Color greenLight; + @override + final Color red; + @override + final Color mediumBlack; + + @override + final SvgFile closeIcon; + @override + final SvgFile dangerIcon; + @override + final SvgFile addIcon; + @override + final SvgFile addDisabledIcon; + @override + final SvgFile arrowRightSquareIcon; + @override + final SvgFile editPenIcon; + @override + final SvgFile infoCircleIcon; + @override + final SvgFile loadingIcon; + @override + final SvgFile tickCircleSuccessIcon; + + @override + final EdgeInsets textFieldDialog2; + @override + final EdgeInsets textFieldDialog4; + @override + final EdgeInsets textFieldDialog3; + @override + final EdgeInsets labeledBoxWidgetPadding1; + @override + final EdgeInsets labeledBoxWidgetPadding2; + @override + final EdgeInsets labeledBoxWidgetPadding3; + @override + final EdgeInsets inputTextFieldPadding1; + @override + final EdgeInsets inputTextFieldPadding2; + @override + final EdgeInsets inputTextFieldPadding3; + @override + final EdgeInsets inputTextFieldPaddingLoading; + @override + final EdgeInsets inputTextFieldPaddingSuccess; + @override + final EdgeInsets inputTextFieldPaddingWarning; + @override + final EdgeInsets inputTextFieldPaddingError; } extension TextFieldDialogThemeContextExtension on BuildContext { diff --git a/packages/widget_toolkit/lib/src/lib_text_field_dialog/theme/text_field_dialog_theme.tailor.dart b/packages/widget_toolkit/lib/src/lib_text_field_dialog/theme/text_field_dialog_theme.tailor.dart index d7a644a1..24cd04a7 100644 --- a/packages/widget_toolkit/lib/src/lib_text_field_dialog/theme/text_field_dialog_theme.tailor.dart +++ b/packages/widget_toolkit/lib/src/lib_text_field_dialog/theme/text_field_dialog_theme.tailor.dart @@ -8,433 +8,201 @@ part of 'text_field_dialog_theme.dart'; // TailorAnnotationsGenerator // ************************************************************************** -class TextFieldDialogTheme extends ThemeExtension { - const TextFieldDialogTheme({ - required this.addDisabledIcon, - required this.addIcon, - required this.arrowRightSquareIcon, - required this.black, - required this.blue, - required this.captionBold, - required this.closeIcon, - required this.dangerIcon, - required this.defaultWhite, - required this.descriptionBold, - required this.descriptionThin, - required this.disabledFilledButtonBackgroundColor, - required this.editFieldBorderRadius, - required this.editFieldRegularBackground, - required this.editFieldSuccessBackground, - required this.editPenIcon, - required this.gray, - required this.green, - required this.greenLight, - required this.infoCircleIcon, - required this.inputTextFieldPadding1, - required this.inputTextFieldPadding2, - required this.inputTextFieldPadding3, - required this.inputTextFieldPaddingError, - required this.inputTextFieldPaddingLoading, - required this.inputTextFieldPaddingSuccess, - required this.inputTextFieldPaddingWarning, - required this.inputTextFieldRegularBackground, - required this.inputTextFieldSuccessBackground, - required this.labelBoxFilledBackground, - required this.labelBoxOptionalBackground, - required this.labeledBoxWidgetPadding1, - required this.labeledBoxWidgetPadding2, - required this.labeledBoxWidgetPadding3, - required this.loadingIcon, - required this.mediumBlack, - required this.mediumWhite, - required this.orange, - required this.orangeLight, - required this.red, - required this.redLight, - required this.smallThin, - required this.spacingL, - required this.spacingM, - required this.spacingS, - required this.spacingXL, - required this.spacingXS, - required this.spacingXSS, - required this.spacingXXXS, - required this.textFieldDialog2, - required this.textFieldDialog3, - required this.textFieldDialog4, - required this.tickCircleSuccessIcon, - required this.titleBold, - required this.transparent, - required this.white, - }); - - final SvgFile addDisabledIcon; - final SvgFile addIcon; - final SvgFile arrowRightSquareIcon; - - ///endregion - ///region Color - final Color black; - final Color blue; - final TextStyle captionBold; - - ///endregion - ///region SvgFile - final SvgFile closeIcon; - final SvgFile dangerIcon; - final Color defaultWhite; - final TextStyle descriptionBold; - - ///endregion - /// region TextStyle - final TextStyle descriptionThin; - final Color disabledFilledButtonBackgroundColor; - final double editFieldBorderRadius; - final Color editFieldRegularBackground; - - /// region EditFieldWidget - final Color editFieldSuccessBackground; - final SvgFile editPenIcon; - final Color gray; - final Color green; - final Color greenLight; - final SvgFile infoCircleIcon; - final EdgeInsets inputTextFieldPadding1; - final EdgeInsets inputTextFieldPadding2; - final EdgeInsets inputTextFieldPadding3; - final EdgeInsets inputTextFieldPaddingError; - final EdgeInsets inputTextFieldPaddingLoading; - final EdgeInsets inputTextFieldPaddingSuccess; - final EdgeInsets inputTextFieldPaddingWarning; - final Color inputTextFieldRegularBackground; - - /// endregion - /// region InputTextField - final Color inputTextFieldSuccessBackground; - final Color labelBoxFilledBackground; - - /// endregion - /// region LabelBoxWidget - final Color labelBoxOptionalBackground; - final EdgeInsets labeledBoxWidgetPadding1; - final EdgeInsets labeledBoxWidgetPadding2; - final EdgeInsets labeledBoxWidgetPadding3; - final SvgFile loadingIcon; - final Color mediumBlack; - final Color mediumWhite; - final Color orange; - final Color orangeLight; - final Color red; - final Color redLight; - final TextStyle smallThin; - final double spacingL; - final double spacingM; - final double spacingS; - final double spacingXL; - - /// endregion - /// region spacings - final double spacingXS; - final double spacingXSS; - final double spacingXXXS; - - ///endregion - ///region EdgeInsets - final EdgeInsets textFieldDialog2; - final EdgeInsets textFieldDialog3; - final EdgeInsets textFieldDialog4; - final SvgFile tickCircleSuccessIcon; - final TextStyle titleBold; - final Color transparent; - final Color white; - - static final TextFieldDialogTheme light = TextFieldDialogTheme( - addDisabledIcon: _$TextFieldDialogTheme.addDisabledIcon[0], - addIcon: _$TextFieldDialogTheme.addIcon[0], - arrowRightSquareIcon: _$TextFieldDialogTheme.arrowRightSquareIcon[0], - black: _$TextFieldDialogTheme.black[0], - blue: _$TextFieldDialogTheme.blue[0], - captionBold: _$TextFieldDialogTheme.captionBold[0], - closeIcon: _$TextFieldDialogTheme.closeIcon[0], - dangerIcon: _$TextFieldDialogTheme.dangerIcon[0], - defaultWhite: _$TextFieldDialogTheme.defaultWhite[0], - descriptionBold: _$TextFieldDialogTheme.descriptionBold[0], - descriptionThin: _$TextFieldDialogTheme.descriptionThin[0], - disabledFilledButtonBackgroundColor: - _$TextFieldDialogTheme.disabledFilledButtonBackgroundColor[0], - editFieldBorderRadius: _$TextFieldDialogTheme.editFieldBorderRadius[0], - editFieldRegularBackground: - _$TextFieldDialogTheme.editFieldRegularBackground[0], - editFieldSuccessBackground: - _$TextFieldDialogTheme.editFieldSuccessBackground[0], - editPenIcon: _$TextFieldDialogTheme.editPenIcon[0], - gray: _$TextFieldDialogTheme.gray[0], - green: _$TextFieldDialogTheme.green[0], - greenLight: _$TextFieldDialogTheme.greenLight[0], - infoCircleIcon: _$TextFieldDialogTheme.infoCircleIcon[0], - inputTextFieldPadding1: _$TextFieldDialogTheme.inputTextFieldPadding1[0], - inputTextFieldPadding2: _$TextFieldDialogTheme.inputTextFieldPadding2[0], - inputTextFieldPadding3: _$TextFieldDialogTheme.inputTextFieldPadding3[0], - inputTextFieldPaddingError: - _$TextFieldDialogTheme.inputTextFieldPaddingError[0], - inputTextFieldPaddingLoading: - _$TextFieldDialogTheme.inputTextFieldPaddingLoading[0], - inputTextFieldPaddingSuccess: - _$TextFieldDialogTheme.inputTextFieldPaddingSuccess[0], - inputTextFieldPaddingWarning: - _$TextFieldDialogTheme.inputTextFieldPaddingWarning[0], - inputTextFieldRegularBackground: - _$TextFieldDialogTheme.inputTextFieldRegularBackground[0], - inputTextFieldSuccessBackground: - _$TextFieldDialogTheme.inputTextFieldSuccessBackground[0], - labelBoxFilledBackground: - _$TextFieldDialogTheme.labelBoxFilledBackground[0], - labelBoxOptionalBackground: - _$TextFieldDialogTheme.labelBoxOptionalBackground[0], - labeledBoxWidgetPadding1: - _$TextFieldDialogTheme.labeledBoxWidgetPadding1[0], - labeledBoxWidgetPadding2: - _$TextFieldDialogTheme.labeledBoxWidgetPadding2[0], - labeledBoxWidgetPadding3: - _$TextFieldDialogTheme.labeledBoxWidgetPadding3[0], - loadingIcon: _$TextFieldDialogTheme.loadingIcon[0], - mediumBlack: _$TextFieldDialogTheme.mediumBlack[0], - mediumWhite: _$TextFieldDialogTheme.mediumWhite[0], - orange: _$TextFieldDialogTheme.orange[0], - orangeLight: _$TextFieldDialogTheme.orangeLight[0], - red: _$TextFieldDialogTheme.red[0], - redLight: _$TextFieldDialogTheme.redLight[0], - smallThin: _$TextFieldDialogTheme.smallThin[0], - spacingL: _$TextFieldDialogTheme.spacingL[0], - spacingM: _$TextFieldDialogTheme.spacingM[0], - spacingS: _$TextFieldDialogTheme.spacingS[0], - spacingXL: _$TextFieldDialogTheme.spacingXL[0], - spacingXS: _$TextFieldDialogTheme.spacingXS[0], - spacingXSS: _$TextFieldDialogTheme.spacingXSS[0], - spacingXXXS: _$TextFieldDialogTheme.spacingXXXS[0], - textFieldDialog2: _$TextFieldDialogTheme.textFieldDialog2[0], - textFieldDialog3: _$TextFieldDialogTheme.textFieldDialog3[0], - textFieldDialog4: _$TextFieldDialogTheme.textFieldDialog4[0], - tickCircleSuccessIcon: _$TextFieldDialogTheme.tickCircleSuccessIcon[0], - titleBold: _$TextFieldDialogTheme.titleBold[0], - transparent: _$TextFieldDialogTheme.transparent[0], - white: _$TextFieldDialogTheme.white[0], - ); - - static final TextFieldDialogTheme dark = TextFieldDialogTheme( - addDisabledIcon: _$TextFieldDialogTheme.addDisabledIcon[1], - addIcon: _$TextFieldDialogTheme.addIcon[1], - arrowRightSquareIcon: _$TextFieldDialogTheme.arrowRightSquareIcon[1], - black: _$TextFieldDialogTheme.black[1], - blue: _$TextFieldDialogTheme.blue[1], - captionBold: _$TextFieldDialogTheme.captionBold[1], - closeIcon: _$TextFieldDialogTheme.closeIcon[1], - dangerIcon: _$TextFieldDialogTheme.dangerIcon[1], - defaultWhite: _$TextFieldDialogTheme.defaultWhite[1], - descriptionBold: _$TextFieldDialogTheme.descriptionBold[1], - descriptionThin: _$TextFieldDialogTheme.descriptionThin[1], - disabledFilledButtonBackgroundColor: - _$TextFieldDialogTheme.disabledFilledButtonBackgroundColor[1], - editFieldBorderRadius: _$TextFieldDialogTheme.editFieldBorderRadius[1], - editFieldRegularBackground: - _$TextFieldDialogTheme.editFieldRegularBackground[1], - editFieldSuccessBackground: - _$TextFieldDialogTheme.editFieldSuccessBackground[1], - editPenIcon: _$TextFieldDialogTheme.editPenIcon[1], - gray: _$TextFieldDialogTheme.gray[1], - green: _$TextFieldDialogTheme.green[1], - greenLight: _$TextFieldDialogTheme.greenLight[1], - infoCircleIcon: _$TextFieldDialogTheme.infoCircleIcon[1], - inputTextFieldPadding1: _$TextFieldDialogTheme.inputTextFieldPadding1[1], - inputTextFieldPadding2: _$TextFieldDialogTheme.inputTextFieldPadding2[1], - inputTextFieldPadding3: _$TextFieldDialogTheme.inputTextFieldPadding3[1], - inputTextFieldPaddingError: - _$TextFieldDialogTheme.inputTextFieldPaddingError[1], - inputTextFieldPaddingLoading: - _$TextFieldDialogTheme.inputTextFieldPaddingLoading[1], - inputTextFieldPaddingSuccess: - _$TextFieldDialogTheme.inputTextFieldPaddingSuccess[1], - inputTextFieldPaddingWarning: - _$TextFieldDialogTheme.inputTextFieldPaddingWarning[1], - inputTextFieldRegularBackground: - _$TextFieldDialogTheme.inputTextFieldRegularBackground[1], - inputTextFieldSuccessBackground: - _$TextFieldDialogTheme.inputTextFieldSuccessBackground[1], - labelBoxFilledBackground: - _$TextFieldDialogTheme.labelBoxFilledBackground[1], - labelBoxOptionalBackground: - _$TextFieldDialogTheme.labelBoxOptionalBackground[1], - labeledBoxWidgetPadding1: - _$TextFieldDialogTheme.labeledBoxWidgetPadding1[1], - labeledBoxWidgetPadding2: - _$TextFieldDialogTheme.labeledBoxWidgetPadding2[1], - labeledBoxWidgetPadding3: - _$TextFieldDialogTheme.labeledBoxWidgetPadding3[1], - loadingIcon: _$TextFieldDialogTheme.loadingIcon[1], - mediumBlack: _$TextFieldDialogTheme.mediumBlack[1], - mediumWhite: _$TextFieldDialogTheme.mediumWhite[1], - orange: _$TextFieldDialogTheme.orange[1], - orangeLight: _$TextFieldDialogTheme.orangeLight[1], - red: _$TextFieldDialogTheme.red[1], - redLight: _$TextFieldDialogTheme.redLight[1], - smallThin: _$TextFieldDialogTheme.smallThin[1], - spacingL: _$TextFieldDialogTheme.spacingL[1], - spacingM: _$TextFieldDialogTheme.spacingM[1], - spacingS: _$TextFieldDialogTheme.spacingS[1], - spacingXL: _$TextFieldDialogTheme.spacingXL[1], - spacingXS: _$TextFieldDialogTheme.spacingXS[1], - spacingXSS: _$TextFieldDialogTheme.spacingXSS[1], - spacingXXXS: _$TextFieldDialogTheme.spacingXXXS[1], - textFieldDialog2: _$TextFieldDialogTheme.textFieldDialog2[1], - textFieldDialog3: _$TextFieldDialogTheme.textFieldDialog3[1], - textFieldDialog4: _$TextFieldDialogTheme.textFieldDialog4[1], - tickCircleSuccessIcon: _$TextFieldDialogTheme.tickCircleSuccessIcon[1], - titleBold: _$TextFieldDialogTheme.titleBold[1], - transparent: _$TextFieldDialogTheme.transparent[1], - white: _$TextFieldDialogTheme.white[1], - ); - - static final themes = [ - light, - dark, - ]; +mixin _$TextFieldDialogThemeTailorMixin + on ThemeExtension { + Color get editFieldSuccessBackground; + Color get editFieldRegularBackground; + Color get inputTextFieldSuccessBackground; + Color get inputTextFieldRegularBackground; + Color get labelBoxOptionalBackground; + Color get labelBoxFilledBackground; + double get editFieldBorderRadius; + double get spacingXS; + double get spacingXSS; + double get spacingS; + double get spacingM; + double get spacingL; + double get spacingXL; + double get spacingXXXS; + TextStyle get descriptionThin; + TextStyle get titleBold; + TextStyle get descriptionBold; + TextStyle get captionBold; + TextStyle get smallThin; + Color get black; + Color get defaultWhite; + Color get white; + Color get blue; + Color get disabledFilledButtonBackgroundColor; + Color get mediumWhite; + Color get gray; + Color get green; + Color get redLight; + Color get orangeLight; + Color get orange; + Color get transparent; + Color get greenLight; + Color get red; + Color get mediumBlack; + SvgFile get closeIcon; + SvgFile get dangerIcon; + SvgFile get addIcon; + SvgFile get addDisabledIcon; + SvgFile get arrowRightSquareIcon; + SvgFile get editPenIcon; + SvgFile get infoCircleIcon; + SvgFile get loadingIcon; + SvgFile get tickCircleSuccessIcon; + EdgeInsets get textFieldDialog2; + EdgeInsets get textFieldDialog4; + EdgeInsets get textFieldDialog3; + EdgeInsets get labeledBoxWidgetPadding1; + EdgeInsets get labeledBoxWidgetPadding2; + EdgeInsets get labeledBoxWidgetPadding3; + EdgeInsets get inputTextFieldPadding1; + EdgeInsets get inputTextFieldPadding2; + EdgeInsets get inputTextFieldPadding3; + EdgeInsets get inputTextFieldPaddingLoading; + EdgeInsets get inputTextFieldPaddingSuccess; + EdgeInsets get inputTextFieldPaddingWarning; + EdgeInsets get inputTextFieldPaddingError; @override TextFieldDialogTheme copyWith({ - SvgFile? addDisabledIcon, - SvgFile? addIcon, - SvgFile? arrowRightSquareIcon, - Color? black, - Color? blue, + Color? editFieldSuccessBackground, + Color? editFieldRegularBackground, + Color? inputTextFieldSuccessBackground, + Color? inputTextFieldRegularBackground, + Color? labelBoxOptionalBackground, + Color? labelBoxFilledBackground, + double? editFieldBorderRadius, + double? spacingXS, + double? spacingXSS, + double? spacingS, + double? spacingM, + double? spacingL, + double? spacingXL, + double? spacingXXXS, + TextStyle? descriptionThin, + TextStyle? titleBold, + TextStyle? descriptionBold, TextStyle? captionBold, - SvgFile? closeIcon, - SvgFile? dangerIcon, + TextStyle? smallThin, + Color? black, Color? defaultWhite, - TextStyle? descriptionBold, - TextStyle? descriptionThin, + Color? white, + Color? blue, Color? disabledFilledButtonBackgroundColor, - double? editFieldBorderRadius, - Color? editFieldRegularBackground, - Color? editFieldSuccessBackground, - SvgFile? editPenIcon, + Color? mediumWhite, Color? gray, Color? green, + Color? redLight, + Color? orangeLight, + Color? orange, + Color? transparent, Color? greenLight, + Color? red, + Color? mediumBlack, + SvgFile? closeIcon, + SvgFile? dangerIcon, + SvgFile? addIcon, + SvgFile? addDisabledIcon, + SvgFile? arrowRightSquareIcon, + SvgFile? editPenIcon, SvgFile? infoCircleIcon, + SvgFile? loadingIcon, + SvgFile? tickCircleSuccessIcon, + EdgeInsets? textFieldDialog2, + EdgeInsets? textFieldDialog4, + EdgeInsets? textFieldDialog3, + EdgeInsets? labeledBoxWidgetPadding1, + EdgeInsets? labeledBoxWidgetPadding2, + EdgeInsets? labeledBoxWidgetPadding3, EdgeInsets? inputTextFieldPadding1, EdgeInsets? inputTextFieldPadding2, EdgeInsets? inputTextFieldPadding3, - EdgeInsets? inputTextFieldPaddingError, EdgeInsets? inputTextFieldPaddingLoading, EdgeInsets? inputTextFieldPaddingSuccess, EdgeInsets? inputTextFieldPaddingWarning, - Color? inputTextFieldRegularBackground, - Color? inputTextFieldSuccessBackground, - Color? labelBoxFilledBackground, - Color? labelBoxOptionalBackground, - EdgeInsets? labeledBoxWidgetPadding1, - EdgeInsets? labeledBoxWidgetPadding2, - EdgeInsets? labeledBoxWidgetPadding3, - SvgFile? loadingIcon, - Color? mediumBlack, - Color? mediumWhite, - Color? orange, - Color? orangeLight, - Color? red, - Color? redLight, - TextStyle? smallThin, - double? spacingL, - double? spacingM, - double? spacingS, - double? spacingXL, - double? spacingXS, - double? spacingXSS, - double? spacingXXXS, - EdgeInsets? textFieldDialog2, - EdgeInsets? textFieldDialog3, - EdgeInsets? textFieldDialog4, - SvgFile? tickCircleSuccessIcon, - TextStyle? titleBold, - Color? transparent, - Color? white, + EdgeInsets? inputTextFieldPaddingError, }) { return TextFieldDialogTheme( - addDisabledIcon: addDisabledIcon ?? this.addDisabledIcon, - addIcon: addIcon ?? this.addIcon, - arrowRightSquareIcon: arrowRightSquareIcon ?? this.arrowRightSquareIcon, - black: black ?? this.black, - blue: blue ?? this.blue, + editFieldSuccessBackground: + editFieldSuccessBackground ?? this.editFieldSuccessBackground, + editFieldRegularBackground: + editFieldRegularBackground ?? this.editFieldRegularBackground, + inputTextFieldSuccessBackground: inputTextFieldSuccessBackground ?? + this.inputTextFieldSuccessBackground, + inputTextFieldRegularBackground: inputTextFieldRegularBackground ?? + this.inputTextFieldRegularBackground, + labelBoxOptionalBackground: + labelBoxOptionalBackground ?? this.labelBoxOptionalBackground, + labelBoxFilledBackground: + labelBoxFilledBackground ?? this.labelBoxFilledBackground, + editFieldBorderRadius: + editFieldBorderRadius ?? this.editFieldBorderRadius, + spacingXS: spacingXS ?? this.spacingXS, + spacingXSS: spacingXSS ?? this.spacingXSS, + spacingS: spacingS ?? this.spacingS, + spacingM: spacingM ?? this.spacingM, + spacingL: spacingL ?? this.spacingL, + spacingXL: spacingXL ?? this.spacingXL, + spacingXXXS: spacingXXXS ?? this.spacingXXXS, + descriptionThin: descriptionThin ?? this.descriptionThin, + titleBold: titleBold ?? this.titleBold, + descriptionBold: descriptionBold ?? this.descriptionBold, captionBold: captionBold ?? this.captionBold, - closeIcon: closeIcon ?? this.closeIcon, - dangerIcon: dangerIcon ?? this.dangerIcon, + smallThin: smallThin ?? this.smallThin, + black: black ?? this.black, defaultWhite: defaultWhite ?? this.defaultWhite, - descriptionBold: descriptionBold ?? this.descriptionBold, - descriptionThin: descriptionThin ?? this.descriptionThin, + white: white ?? this.white, + blue: blue ?? this.blue, disabledFilledButtonBackgroundColor: disabledFilledButtonBackgroundColor ?? this.disabledFilledButtonBackgroundColor, - editFieldBorderRadius: - editFieldBorderRadius ?? this.editFieldBorderRadius, - editFieldRegularBackground: - editFieldRegularBackground ?? this.editFieldRegularBackground, - editFieldSuccessBackground: - editFieldSuccessBackground ?? this.editFieldSuccessBackground, - editPenIcon: editPenIcon ?? this.editPenIcon, + mediumWhite: mediumWhite ?? this.mediumWhite, gray: gray ?? this.gray, green: green ?? this.green, + redLight: redLight ?? this.redLight, + orangeLight: orangeLight ?? this.orangeLight, + orange: orange ?? this.orange, + transparent: transparent ?? this.transparent, greenLight: greenLight ?? this.greenLight, + red: red ?? this.red, + mediumBlack: mediumBlack ?? this.mediumBlack, + closeIcon: closeIcon ?? this.closeIcon, + dangerIcon: dangerIcon ?? this.dangerIcon, + addIcon: addIcon ?? this.addIcon, + addDisabledIcon: addDisabledIcon ?? this.addDisabledIcon, + arrowRightSquareIcon: arrowRightSquareIcon ?? this.arrowRightSquareIcon, + editPenIcon: editPenIcon ?? this.editPenIcon, infoCircleIcon: infoCircleIcon ?? this.infoCircleIcon, + loadingIcon: loadingIcon ?? this.loadingIcon, + tickCircleSuccessIcon: + tickCircleSuccessIcon ?? this.tickCircleSuccessIcon, + textFieldDialog2: textFieldDialog2 ?? this.textFieldDialog2, + textFieldDialog4: textFieldDialog4 ?? this.textFieldDialog4, + textFieldDialog3: textFieldDialog3 ?? this.textFieldDialog3, + labeledBoxWidgetPadding1: + labeledBoxWidgetPadding1 ?? this.labeledBoxWidgetPadding1, + labeledBoxWidgetPadding2: + labeledBoxWidgetPadding2 ?? this.labeledBoxWidgetPadding2, + labeledBoxWidgetPadding3: + labeledBoxWidgetPadding3 ?? this.labeledBoxWidgetPadding3, inputTextFieldPadding1: inputTextFieldPadding1 ?? this.inputTextFieldPadding1, inputTextFieldPadding2: inputTextFieldPadding2 ?? this.inputTextFieldPadding2, inputTextFieldPadding3: inputTextFieldPadding3 ?? this.inputTextFieldPadding3, - inputTextFieldPaddingError: - inputTextFieldPaddingError ?? this.inputTextFieldPaddingError, inputTextFieldPaddingLoading: inputTextFieldPaddingLoading ?? this.inputTextFieldPaddingLoading, inputTextFieldPaddingSuccess: inputTextFieldPaddingSuccess ?? this.inputTextFieldPaddingSuccess, inputTextFieldPaddingWarning: inputTextFieldPaddingWarning ?? this.inputTextFieldPaddingWarning, - inputTextFieldRegularBackground: inputTextFieldRegularBackground ?? - this.inputTextFieldRegularBackground, - inputTextFieldSuccessBackground: inputTextFieldSuccessBackground ?? - this.inputTextFieldSuccessBackground, - labelBoxFilledBackground: - labelBoxFilledBackground ?? this.labelBoxFilledBackground, - labelBoxOptionalBackground: - labelBoxOptionalBackground ?? this.labelBoxOptionalBackground, - labeledBoxWidgetPadding1: - labeledBoxWidgetPadding1 ?? this.labeledBoxWidgetPadding1, - labeledBoxWidgetPadding2: - labeledBoxWidgetPadding2 ?? this.labeledBoxWidgetPadding2, - labeledBoxWidgetPadding3: - labeledBoxWidgetPadding3 ?? this.labeledBoxWidgetPadding3, - loadingIcon: loadingIcon ?? this.loadingIcon, - mediumBlack: mediumBlack ?? this.mediumBlack, - mediumWhite: mediumWhite ?? this.mediumWhite, - orange: orange ?? this.orange, - orangeLight: orangeLight ?? this.orangeLight, - red: red ?? this.red, - redLight: redLight ?? this.redLight, - smallThin: smallThin ?? this.smallThin, - spacingL: spacingL ?? this.spacingL, - spacingM: spacingM ?? this.spacingM, - spacingS: spacingS ?? this.spacingS, - spacingXL: spacingXL ?? this.spacingXL, - spacingXS: spacingXS ?? this.spacingXS, - spacingXSS: spacingXSS ?? this.spacingXSS, - spacingXXXS: spacingXXXS ?? this.spacingXXXS, - textFieldDialog2: textFieldDialog2 ?? this.textFieldDialog2, - textFieldDialog3: textFieldDialog3 ?? this.textFieldDialog3, - textFieldDialog4: textFieldDialog4 ?? this.textFieldDialog4, - tickCircleSuccessIcon: - tickCircleSuccessIcon ?? this.tickCircleSuccessIcon, - titleBold: titleBold ?? this.titleBold, - transparent: transparent ?? this.transparent, - white: white ?? this.white, + inputTextFieldPaddingError: + inputTextFieldPaddingError ?? this.inputTextFieldPaddingError, ); } @@ -443,44 +211,82 @@ class TextFieldDialogTheme extends ThemeExtension { covariant ThemeExtension? other, double t) { if (other is! TextFieldDialogTheme) return this as TextFieldDialogTheme; return TextFieldDialogTheme( - addDisabledIcon: t < 0.5 ? addDisabledIcon : other.addDisabledIcon, - addIcon: t < 0.5 ? addIcon : other.addIcon, - arrowRightSquareIcon: - t < 0.5 ? arrowRightSquareIcon : other.arrowRightSquareIcon, - black: Color.lerp(black, other.black, t)!, - blue: Color.lerp(blue, other.blue, t)!, - captionBold: TextStyle.lerp(captionBold, other.captionBold, t)!, - closeIcon: t < 0.5 ? closeIcon : other.closeIcon, - dangerIcon: t < 0.5 ? dangerIcon : other.dangerIcon, - defaultWhite: Color.lerp(defaultWhite, other.defaultWhite, t)!, - descriptionBold: - TextStyle.lerp(descriptionBold, other.descriptionBold, t)!, + editFieldSuccessBackground: Color.lerp( + editFieldSuccessBackground, other.editFieldSuccessBackground, t)!, + editFieldRegularBackground: Color.lerp( + editFieldRegularBackground, other.editFieldRegularBackground, t)!, + inputTextFieldSuccessBackground: Color.lerp( + inputTextFieldSuccessBackground, + other.inputTextFieldSuccessBackground, + t)!, + inputTextFieldRegularBackground: Color.lerp( + inputTextFieldRegularBackground, + other.inputTextFieldRegularBackground, + t)!, + labelBoxOptionalBackground: Color.lerp( + labelBoxOptionalBackground, other.labelBoxOptionalBackground, t)!, + labelBoxFilledBackground: Color.lerp( + labelBoxFilledBackground, other.labelBoxFilledBackground, t)!, + editFieldBorderRadius: + t < 0.5 ? editFieldBorderRadius : other.editFieldBorderRadius, + spacingXS: t < 0.5 ? spacingXS : other.spacingXS, + spacingXSS: t < 0.5 ? spacingXSS : other.spacingXSS, + spacingS: t < 0.5 ? spacingS : other.spacingS, + spacingM: t < 0.5 ? spacingM : other.spacingM, + spacingL: t < 0.5 ? spacingL : other.spacingL, + spacingXL: t < 0.5 ? spacingXL : other.spacingXL, + spacingXXXS: t < 0.5 ? spacingXXXS : other.spacingXXXS, descriptionThin: TextStyle.lerp(descriptionThin, other.descriptionThin, t)!, + titleBold: TextStyle.lerp(titleBold, other.titleBold, t)!, + descriptionBold: + TextStyle.lerp(descriptionBold, other.descriptionBold, t)!, + captionBold: TextStyle.lerp(captionBold, other.captionBold, t)!, + smallThin: TextStyle.lerp(smallThin, other.smallThin, t)!, + black: Color.lerp(black, other.black, t)!, + defaultWhite: Color.lerp(defaultWhite, other.defaultWhite, t)!, + white: Color.lerp(white, other.white, t)!, + blue: Color.lerp(blue, other.blue, t)!, disabledFilledButtonBackgroundColor: Color.lerp( disabledFilledButtonBackgroundColor, other.disabledFilledButtonBackgroundColor, t)!, - editFieldBorderRadius: - t < 0.5 ? editFieldBorderRadius : other.editFieldBorderRadius, - editFieldRegularBackground: Color.lerp( - editFieldRegularBackground, other.editFieldRegularBackground, t)!, - editFieldSuccessBackground: Color.lerp( - editFieldSuccessBackground, other.editFieldSuccessBackground, t)!, - editPenIcon: t < 0.5 ? editPenIcon : other.editPenIcon, + mediumWhite: Color.lerp(mediumWhite, other.mediumWhite, t)!, gray: Color.lerp(gray, other.gray, t)!, green: Color.lerp(green, other.green, t)!, + redLight: Color.lerp(redLight, other.redLight, t)!, + orangeLight: Color.lerp(orangeLight, other.orangeLight, t)!, + orange: Color.lerp(orange, other.orange, t)!, + transparent: Color.lerp(transparent, other.transparent, t)!, greenLight: Color.lerp(greenLight, other.greenLight, t)!, + red: Color.lerp(red, other.red, t)!, + mediumBlack: Color.lerp(mediumBlack, other.mediumBlack, t)!, + closeIcon: t < 0.5 ? closeIcon : other.closeIcon, + dangerIcon: t < 0.5 ? dangerIcon : other.dangerIcon, + addIcon: t < 0.5 ? addIcon : other.addIcon, + addDisabledIcon: t < 0.5 ? addDisabledIcon : other.addDisabledIcon, + arrowRightSquareIcon: + t < 0.5 ? arrowRightSquareIcon : other.arrowRightSquareIcon, + editPenIcon: t < 0.5 ? editPenIcon : other.editPenIcon, infoCircleIcon: t < 0.5 ? infoCircleIcon : other.infoCircleIcon, + loadingIcon: t < 0.5 ? loadingIcon : other.loadingIcon, + tickCircleSuccessIcon: + t < 0.5 ? tickCircleSuccessIcon : other.tickCircleSuccessIcon, + textFieldDialog2: t < 0.5 ? textFieldDialog2 : other.textFieldDialog2, + textFieldDialog4: t < 0.5 ? textFieldDialog4 : other.textFieldDialog4, + textFieldDialog3: t < 0.5 ? textFieldDialog3 : other.textFieldDialog3, + labeledBoxWidgetPadding1: + t < 0.5 ? labeledBoxWidgetPadding1 : other.labeledBoxWidgetPadding1, + labeledBoxWidgetPadding2: + t < 0.5 ? labeledBoxWidgetPadding2 : other.labeledBoxWidgetPadding2, + labeledBoxWidgetPadding3: + t < 0.5 ? labeledBoxWidgetPadding3 : other.labeledBoxWidgetPadding3, inputTextFieldPadding1: t < 0.5 ? inputTextFieldPadding1 : other.inputTextFieldPadding1, inputTextFieldPadding2: t < 0.5 ? inputTextFieldPadding2 : other.inputTextFieldPadding2, inputTextFieldPadding3: t < 0.5 ? inputTextFieldPadding3 : other.inputTextFieldPadding3, - inputTextFieldPaddingError: t < 0.5 - ? inputTextFieldPaddingError - : other.inputTextFieldPaddingError, inputTextFieldPaddingLoading: t < 0.5 ? inputTextFieldPaddingLoading : other.inputTextFieldPaddingLoading, @@ -490,47 +296,9 @@ class TextFieldDialogTheme extends ThemeExtension { inputTextFieldPaddingWarning: t < 0.5 ? inputTextFieldPaddingWarning : other.inputTextFieldPaddingWarning, - inputTextFieldRegularBackground: Color.lerp( - inputTextFieldRegularBackground, - other.inputTextFieldRegularBackground, - t)!, - inputTextFieldSuccessBackground: Color.lerp( - inputTextFieldSuccessBackground, - other.inputTextFieldSuccessBackground, - t)!, - labelBoxFilledBackground: Color.lerp( - labelBoxFilledBackground, other.labelBoxFilledBackground, t)!, - labelBoxOptionalBackground: Color.lerp( - labelBoxOptionalBackground, other.labelBoxOptionalBackground, t)!, - labeledBoxWidgetPadding1: - t < 0.5 ? labeledBoxWidgetPadding1 : other.labeledBoxWidgetPadding1, - labeledBoxWidgetPadding2: - t < 0.5 ? labeledBoxWidgetPadding2 : other.labeledBoxWidgetPadding2, - labeledBoxWidgetPadding3: - t < 0.5 ? labeledBoxWidgetPadding3 : other.labeledBoxWidgetPadding3, - loadingIcon: t < 0.5 ? loadingIcon : other.loadingIcon, - mediumBlack: Color.lerp(mediumBlack, other.mediumBlack, t)!, - mediumWhite: Color.lerp(mediumWhite, other.mediumWhite, t)!, - orange: Color.lerp(orange, other.orange, t)!, - orangeLight: Color.lerp(orangeLight, other.orangeLight, t)!, - red: Color.lerp(red, other.red, t)!, - redLight: Color.lerp(redLight, other.redLight, t)!, - smallThin: TextStyle.lerp(smallThin, other.smallThin, t)!, - spacingL: t < 0.5 ? spacingL : other.spacingL, - spacingM: t < 0.5 ? spacingM : other.spacingM, - spacingS: t < 0.5 ? spacingS : other.spacingS, - spacingXL: t < 0.5 ? spacingXL : other.spacingXL, - spacingXS: t < 0.5 ? spacingXS : other.spacingXS, - spacingXSS: t < 0.5 ? spacingXSS : other.spacingXSS, - spacingXXXS: t < 0.5 ? spacingXXXS : other.spacingXXXS, - textFieldDialog2: t < 0.5 ? textFieldDialog2 : other.textFieldDialog2, - textFieldDialog3: t < 0.5 ? textFieldDialog3 : other.textFieldDialog3, - textFieldDialog4: t < 0.5 ? textFieldDialog4 : other.textFieldDialog4, - tickCircleSuccessIcon: - t < 0.5 ? tickCircleSuccessIcon : other.tickCircleSuccessIcon, - titleBold: TextStyle.lerp(titleBold, other.titleBold, t)!, - transparent: Color.lerp(transparent, other.transparent, t)!, - white: Color.lerp(white, other.white, t)!, + inputTextFieldPaddingError: t < 0.5 + ? inputTextFieldPaddingError + : other.inputTextFieldPaddingError, ); } @@ -539,152 +307,150 @@ class TextFieldDialogTheme extends ThemeExtension { return identical(this, other) || (other.runtimeType == runtimeType && other is TextFieldDialogTheme && + const DeepCollectionEquality().equals( + editFieldSuccessBackground, other.editFieldSuccessBackground) && + const DeepCollectionEquality().equals( + editFieldRegularBackground, other.editFieldRegularBackground) && + const DeepCollectionEquality().equals( + inputTextFieldSuccessBackground, + other.inputTextFieldSuccessBackground) && + const DeepCollectionEquality().equals( + inputTextFieldRegularBackground, + other.inputTextFieldRegularBackground) && + const DeepCollectionEquality().equals( + labelBoxOptionalBackground, other.labelBoxOptionalBackground) && + const DeepCollectionEquality().equals( + labelBoxFilledBackground, other.labelBoxFilledBackground) && const DeepCollectionEquality() - .equals(addDisabledIcon, other.addDisabledIcon) && - const DeepCollectionEquality().equals(addIcon, other.addIcon) && - const DeepCollectionEquality() - .equals(arrowRightSquareIcon, other.arrowRightSquareIcon) && - const DeepCollectionEquality().equals(black, other.black) && - const DeepCollectionEquality().equals(blue, other.blue) && + .equals(editFieldBorderRadius, other.editFieldBorderRadius) && + const DeepCollectionEquality().equals(spacingXS, other.spacingXS) && const DeepCollectionEquality() - .equals(captionBold, other.captionBold) && - const DeepCollectionEquality().equals(closeIcon, other.closeIcon) && + .equals(spacingXSS, other.spacingXSS) && + const DeepCollectionEquality().equals(spacingS, other.spacingS) && + const DeepCollectionEquality().equals(spacingM, other.spacingM) && + const DeepCollectionEquality().equals(spacingL, other.spacingL) && + const DeepCollectionEquality().equals(spacingXL, other.spacingXL) && const DeepCollectionEquality() - .equals(dangerIcon, other.dangerIcon) && + .equals(spacingXXXS, other.spacingXXXS) && const DeepCollectionEquality() - .equals(defaultWhite, other.defaultWhite) && + .equals(descriptionThin, other.descriptionThin) && + const DeepCollectionEquality().equals(titleBold, other.titleBold) && const DeepCollectionEquality() .equals(descriptionBold, other.descriptionBold) && const DeepCollectionEquality() - .equals(descriptionThin, other.descriptionThin) && + .equals(captionBold, other.captionBold) && + const DeepCollectionEquality().equals(smallThin, other.smallThin) && + const DeepCollectionEquality().equals(black, other.black) && + const DeepCollectionEquality() + .equals(defaultWhite, other.defaultWhite) && + const DeepCollectionEquality().equals(white, other.white) && + const DeepCollectionEquality().equals(blue, other.blue) && const DeepCollectionEquality().equals( disabledFilledButtonBackgroundColor, other.disabledFilledButtonBackgroundColor) && const DeepCollectionEquality() - .equals(editFieldBorderRadius, other.editFieldBorderRadius) && - const DeepCollectionEquality().equals( - editFieldRegularBackground, other.editFieldRegularBackground) && - const DeepCollectionEquality().equals( - editFieldSuccessBackground, other.editFieldSuccessBackground) && - const DeepCollectionEquality() - .equals(editPenIcon, other.editPenIcon) && + .equals(mediumWhite, other.mediumWhite) && const DeepCollectionEquality().equals(gray, other.gray) && const DeepCollectionEquality().equals(green, other.green) && + const DeepCollectionEquality().equals(redLight, other.redLight) && + const DeepCollectionEquality() + .equals(orangeLight, other.orangeLight) && + const DeepCollectionEquality().equals(orange, other.orange) && + const DeepCollectionEquality() + .equals(transparent, other.transparent) && const DeepCollectionEquality() .equals(greenLight, other.greenLight) && + const DeepCollectionEquality().equals(red, other.red) && const DeepCollectionEquality() - .equals(infoCircleIcon, other.infoCircleIcon) && + .equals(mediumBlack, other.mediumBlack) && + const DeepCollectionEquality().equals(closeIcon, other.closeIcon) && const DeepCollectionEquality() - .equals(inputTextFieldPadding1, other.inputTextFieldPadding1) && + .equals(dangerIcon, other.dangerIcon) && + const DeepCollectionEquality().equals(addIcon, other.addIcon) && const DeepCollectionEquality() - .equals(inputTextFieldPadding2, other.inputTextFieldPadding2) && + .equals(addDisabledIcon, other.addDisabledIcon) && const DeepCollectionEquality() - .equals(inputTextFieldPadding3, other.inputTextFieldPadding3) && - const DeepCollectionEquality().equals( - inputTextFieldPaddingError, other.inputTextFieldPaddingError) && - const DeepCollectionEquality().equals(inputTextFieldPaddingLoading, - other.inputTextFieldPaddingLoading) && - const DeepCollectionEquality().equals(inputTextFieldPaddingSuccess, - other.inputTextFieldPaddingSuccess) && - const DeepCollectionEquality().equals(inputTextFieldPaddingWarning, - other.inputTextFieldPaddingWarning) && - const DeepCollectionEquality().equals( - inputTextFieldRegularBackground, - other.inputTextFieldRegularBackground) && - const DeepCollectionEquality().equals( - inputTextFieldSuccessBackground, - other.inputTextFieldSuccessBackground) && - const DeepCollectionEquality().equals( - labelBoxFilledBackground, other.labelBoxFilledBackground) && - const DeepCollectionEquality().equals( - labelBoxOptionalBackground, other.labelBoxOptionalBackground) && - const DeepCollectionEquality().equals(labeledBoxWidgetPadding1, other.labeledBoxWidgetPadding1) && - const DeepCollectionEquality().equals(labeledBoxWidgetPadding2, other.labeledBoxWidgetPadding2) && - const DeepCollectionEquality().equals(labeledBoxWidgetPadding3, other.labeledBoxWidgetPadding3) && + .equals(arrowRightSquareIcon, other.arrowRightSquareIcon) && + const DeepCollectionEquality() + .equals(editPenIcon, other.editPenIcon) && + const DeepCollectionEquality().equals(infoCircleIcon, other.infoCircleIcon) && const DeepCollectionEquality().equals(loadingIcon, other.loadingIcon) && - const DeepCollectionEquality().equals(mediumBlack, other.mediumBlack) && - const DeepCollectionEquality().equals(mediumWhite, other.mediumWhite) && - const DeepCollectionEquality().equals(orange, other.orange) && - const DeepCollectionEquality().equals(orangeLight, other.orangeLight) && - const DeepCollectionEquality().equals(red, other.red) && - const DeepCollectionEquality().equals(redLight, other.redLight) && - const DeepCollectionEquality().equals(smallThin, other.smallThin) && - const DeepCollectionEquality().equals(spacingL, other.spacingL) && - const DeepCollectionEquality().equals(spacingM, other.spacingM) && - const DeepCollectionEquality().equals(spacingS, other.spacingS) && - const DeepCollectionEquality().equals(spacingXL, other.spacingXL) && - const DeepCollectionEquality().equals(spacingXS, other.spacingXS) && - const DeepCollectionEquality().equals(spacingXSS, other.spacingXSS) && - const DeepCollectionEquality().equals(spacingXXXS, other.spacingXXXS) && + const DeepCollectionEquality().equals(tickCircleSuccessIcon, other.tickCircleSuccessIcon) && const DeepCollectionEquality().equals(textFieldDialog2, other.textFieldDialog2) && - const DeepCollectionEquality().equals(textFieldDialog3, other.textFieldDialog3) && const DeepCollectionEquality().equals(textFieldDialog4, other.textFieldDialog4) && - const DeepCollectionEquality().equals(tickCircleSuccessIcon, other.tickCircleSuccessIcon) && - const DeepCollectionEquality().equals(titleBold, other.titleBold) && - const DeepCollectionEquality().equals(transparent, other.transparent) && - const DeepCollectionEquality().equals(white, other.white)); + const DeepCollectionEquality().equals(textFieldDialog3, other.textFieldDialog3) && + const DeepCollectionEquality().equals(labeledBoxWidgetPadding1, other.labeledBoxWidgetPadding1) && + const DeepCollectionEquality().equals(labeledBoxWidgetPadding2, other.labeledBoxWidgetPadding2) && + const DeepCollectionEquality().equals(labeledBoxWidgetPadding3, other.labeledBoxWidgetPadding3) && + const DeepCollectionEquality().equals(inputTextFieldPadding1, other.inputTextFieldPadding1) && + const DeepCollectionEquality().equals(inputTextFieldPadding2, other.inputTextFieldPadding2) && + const DeepCollectionEquality().equals(inputTextFieldPadding3, other.inputTextFieldPadding3) && + const DeepCollectionEquality().equals(inputTextFieldPaddingLoading, other.inputTextFieldPaddingLoading) && + const DeepCollectionEquality().equals(inputTextFieldPaddingSuccess, other.inputTextFieldPaddingSuccess) && + const DeepCollectionEquality().equals(inputTextFieldPaddingWarning, other.inputTextFieldPaddingWarning) && + const DeepCollectionEquality().equals(inputTextFieldPaddingError, other.inputTextFieldPaddingError)); } @override int get hashCode { return Object.hashAll([ runtimeType.hashCode, - const DeepCollectionEquality().hash(addDisabledIcon), - const DeepCollectionEquality().hash(addIcon), - const DeepCollectionEquality().hash(arrowRightSquareIcon), - const DeepCollectionEquality().hash(black), - const DeepCollectionEquality().hash(blue), + const DeepCollectionEquality().hash(editFieldSuccessBackground), + const DeepCollectionEquality().hash(editFieldRegularBackground), + const DeepCollectionEquality().hash(inputTextFieldSuccessBackground), + const DeepCollectionEquality().hash(inputTextFieldRegularBackground), + const DeepCollectionEquality().hash(labelBoxOptionalBackground), + const DeepCollectionEquality().hash(labelBoxFilledBackground), + const DeepCollectionEquality().hash(editFieldBorderRadius), + const DeepCollectionEquality().hash(spacingXS), + const DeepCollectionEquality().hash(spacingXSS), + const DeepCollectionEquality().hash(spacingS), + const DeepCollectionEquality().hash(spacingM), + const DeepCollectionEquality().hash(spacingL), + const DeepCollectionEquality().hash(spacingXL), + const DeepCollectionEquality().hash(spacingXXXS), + const DeepCollectionEquality().hash(descriptionThin), + const DeepCollectionEquality().hash(titleBold), + const DeepCollectionEquality().hash(descriptionBold), const DeepCollectionEquality().hash(captionBold), - const DeepCollectionEquality().hash(closeIcon), - const DeepCollectionEquality().hash(dangerIcon), + const DeepCollectionEquality().hash(smallThin), + const DeepCollectionEquality().hash(black), const DeepCollectionEquality().hash(defaultWhite), - const DeepCollectionEquality().hash(descriptionBold), - const DeepCollectionEquality().hash(descriptionThin), + const DeepCollectionEquality().hash(white), + const DeepCollectionEquality().hash(blue), const DeepCollectionEquality().hash(disabledFilledButtonBackgroundColor), - const DeepCollectionEquality().hash(editFieldBorderRadius), - const DeepCollectionEquality().hash(editFieldRegularBackground), - const DeepCollectionEquality().hash(editFieldSuccessBackground), - const DeepCollectionEquality().hash(editPenIcon), + const DeepCollectionEquality().hash(mediumWhite), const DeepCollectionEquality().hash(gray), const DeepCollectionEquality().hash(green), + const DeepCollectionEquality().hash(redLight), + const DeepCollectionEquality().hash(orangeLight), + const DeepCollectionEquality().hash(orange), + const DeepCollectionEquality().hash(transparent), const DeepCollectionEquality().hash(greenLight), + const DeepCollectionEquality().hash(red), + const DeepCollectionEquality().hash(mediumBlack), + const DeepCollectionEquality().hash(closeIcon), + const DeepCollectionEquality().hash(dangerIcon), + const DeepCollectionEquality().hash(addIcon), + const DeepCollectionEquality().hash(addDisabledIcon), + const DeepCollectionEquality().hash(arrowRightSquareIcon), + const DeepCollectionEquality().hash(editPenIcon), const DeepCollectionEquality().hash(infoCircleIcon), + const DeepCollectionEquality().hash(loadingIcon), + const DeepCollectionEquality().hash(tickCircleSuccessIcon), + const DeepCollectionEquality().hash(textFieldDialog2), + const DeepCollectionEquality().hash(textFieldDialog4), + const DeepCollectionEquality().hash(textFieldDialog3), + const DeepCollectionEquality().hash(labeledBoxWidgetPadding1), + const DeepCollectionEquality().hash(labeledBoxWidgetPadding2), + const DeepCollectionEquality().hash(labeledBoxWidgetPadding3), const DeepCollectionEquality().hash(inputTextFieldPadding1), const DeepCollectionEquality().hash(inputTextFieldPadding2), const DeepCollectionEquality().hash(inputTextFieldPadding3), - const DeepCollectionEquality().hash(inputTextFieldPaddingError), const DeepCollectionEquality().hash(inputTextFieldPaddingLoading), const DeepCollectionEquality().hash(inputTextFieldPaddingSuccess), const DeepCollectionEquality().hash(inputTextFieldPaddingWarning), - const DeepCollectionEquality().hash(inputTextFieldRegularBackground), - const DeepCollectionEquality().hash(inputTextFieldSuccessBackground), - const DeepCollectionEquality().hash(labelBoxFilledBackground), - const DeepCollectionEquality().hash(labelBoxOptionalBackground), - const DeepCollectionEquality().hash(labeledBoxWidgetPadding1), - const DeepCollectionEquality().hash(labeledBoxWidgetPadding2), - const DeepCollectionEquality().hash(labeledBoxWidgetPadding3), - const DeepCollectionEquality().hash(loadingIcon), - const DeepCollectionEquality().hash(mediumBlack), - const DeepCollectionEquality().hash(mediumWhite), - const DeepCollectionEquality().hash(orange), - const DeepCollectionEquality().hash(orangeLight), - const DeepCollectionEquality().hash(red), - const DeepCollectionEquality().hash(redLight), - const DeepCollectionEquality().hash(smallThin), - const DeepCollectionEquality().hash(spacingL), - const DeepCollectionEquality().hash(spacingM), - const DeepCollectionEquality().hash(spacingS), - const DeepCollectionEquality().hash(spacingXL), - const DeepCollectionEquality().hash(spacingXS), - const DeepCollectionEquality().hash(spacingXSS), - const DeepCollectionEquality().hash(spacingXXXS), - const DeepCollectionEquality().hash(textFieldDialog2), - const DeepCollectionEquality().hash(textFieldDialog3), - const DeepCollectionEquality().hash(textFieldDialog4), - const DeepCollectionEquality().hash(tickCircleSuccessIcon), - const DeepCollectionEquality().hash(titleBold), - const DeepCollectionEquality().hash(transparent), - const DeepCollectionEquality().hash(white), + const DeepCollectionEquality().hash(inputTextFieldPaddingError), ]); } } diff --git a/packages/widget_toolkit/test/helpers/golden_helper.dart b/packages/widget_toolkit/test/helpers/golden_helper.dart index 830a268e..56895932 100644 --- a/packages/widget_toolkit/test/helpers/golden_helper.dart +++ b/packages/widget_toolkit/test/helpers/golden_helper.dart @@ -94,7 +94,7 @@ Future pumpDeviceBuilderWithLocalizationsAndTheme( ThemeData getThemeData(bool inLightMode) { final theme = inLightMode ? ThemeData.light().copyWith(extensions: [ - WidgetToolkitTheme.light.copyWith( + WidgetToolkitTheme.light().copyWith( captionBold: const TextStyle( inherit: true, ), @@ -108,9 +108,9 @@ ThemeData getThemeData(bool inLightMode) { inherit: true, ), ), - SearchPickerTheme.light, - TextFieldDialogTheme.light, - TextFieldDialogTheme.light.copyWith( + SearchPickerTheme.light(), + TextFieldDialogTheme.light(), + TextFieldDialogTheme.light().copyWith( captionBold: const TextStyle( inherit: true, ), @@ -118,7 +118,7 @@ ThemeData getThemeData(bool inLightMode) { inherit: true, ), ), - EditAddressTheme.light.copyWith( + EditAddressTheme.light().copyWith( titleBold: const TextStyle( inherit: true, ), @@ -131,7 +131,7 @@ ThemeData getThemeData(bool inLightMode) { ), ]) : ThemeData.dark().copyWith(extensions: [ - WidgetToolkitTheme.dark.copyWith( + WidgetToolkitTheme.dark().copyWith( captionBold: const TextStyle( inherit: true, ), @@ -145,8 +145,8 @@ ThemeData getThemeData(bool inLightMode) { inherit: true, ), ), - SearchPickerTheme.dark, - TextFieldDialogTheme.dark.copyWith( + SearchPickerTheme.dark(), + TextFieldDialogTheme.dark().copyWith( captionBold: const TextStyle( inherit: true, ), @@ -154,7 +154,7 @@ ThemeData getThemeData(bool inLightMode) { inherit: true, ), ), - EditAddressTheme.dark.copyWith( + EditAddressTheme.dark().copyWith( titleBold: const TextStyle( inherit: true, ),