From 68a69c9d3c8eff31aaebaf28b055d9efd55161de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malo=20L=C3=A9on?= Date: Wed, 8 Feb 2023 15:43:20 +0100 Subject: [PATCH] fix(ui_components): remove darkmode enable field in cards --- .../lib/src/domain/entities/cards/card_component.dart | 4 ---- .../src/domain/entities/cards/information_card_component.dart | 1 - .../domain/entities/cards/information_card_component.g.dart | 2 -- .../lib/src/domain/entities/cards/quote_card_component.dart | 1 - .../lib/src/domain/entities/cards/quote_card_component.g.dart | 2 -- 5 files changed, 10 deletions(-) diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/cards/card_component.dart b/packages/wyatt_ui_components/lib/src/domain/entities/cards/card_component.dart index 73f7ce79..ea3ef7bc 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/cards/card_component.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/cards/card_component.dart @@ -26,7 +26,6 @@ abstract class CardComponent extends Component { this.minSize, this.maxSize, this.shadow, - this.isDarkModeEnabled, this.background, super.key, }); @@ -52,9 +51,6 @@ abstract class CardComponent extends Component { /// Drop shadow final BoxShadow? shadow; - /// Is this component in dark mode or not - final bool? isDarkModeEnabled; - /// Background of the card final Widget? background; } diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/cards/information_card_component.dart b/packages/wyatt_ui_components/lib/src/domain/entities/cards/information_card_component.dart index a6676d0c..2af68c67 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/cards/information_card_component.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/cards/information_card_component.dart @@ -41,7 +41,6 @@ abstract class InformationCardComponent extends CardComponent offset: Offset(0, 5), color: Color.fromRGBO(0, 0, 0, 0.05), ), - super.isDarkModeEnabled = false, super.background, super.key, }); diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/cards/information_card_component.g.dart b/packages/wyatt_ui_components/lib/src/domain/entities/cards/information_card_component.g.dart index 78cdc783..c5a3e0fb 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/cards/information_card_component.g.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/cards/information_card_component.g.dart @@ -19,7 +19,6 @@ abstract class $InformationCardComponentCWProxy { InformationCardComponent minSize(Size? minSize); InformationCardComponent maxSize(Size? maxSize); InformationCardComponent shadow(BoxShadow? shadow); - InformationCardComponent isDarkModeEnabled(bool? isDarkModeEnabled); InformationCardComponent background(Widget? background); InformationCardComponent key(Key? key); InformationCardComponent call({ @@ -35,7 +34,6 @@ abstract class $InformationCardComponentCWProxy { Size? minSize, Size? maxSize, BoxShadow? shadow, - bool? isDarkModeEnabled, Widget? background, Key? key, }); diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.dart b/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.dart index 40f11239..004cfea8 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.dart @@ -43,7 +43,6 @@ abstract class QuoteCardComponent extends CardComponent offset: Offset(0, 5), color: Color.fromRGBO(0, 0, 0, 0.05), ), - super.isDarkModeEnabled = false, super.background, super.key, }); diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.g.dart b/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.g.dart index e48b6963..9e7f4318 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.g.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/cards/quote_card_component.g.dart @@ -21,7 +21,6 @@ abstract class $QuoteCardComponentCWProxy { QuoteCardComponent minSize(Size? minSize); QuoteCardComponent maxSize(Size? maxSize); QuoteCardComponent shadow(BoxShadow? shadow); - QuoteCardComponent isDarkModeEnabled(bool? isDarkModeEnabled); QuoteCardComponent background(Widget? background); QuoteCardComponent key(Key? key); QuoteCardComponent call({ @@ -39,7 +38,6 @@ abstract class $QuoteCardComponentCWProxy { Size? minSize, Size? maxSize, BoxShadow? shadow, - bool? isDarkModeEnabled, Widget? background, Key? key, });