fix(ui_components): remove darkmode enable field in cards
This commit is contained in:
		
							parent
							
								
									9bc453e04f
								
							
						
					
					
						commit
						8304aaf8c8
					
				| @ -26,7 +26,6 @@ abstract class CardComponent extends Component { | |||||||
|     this.minSize, |     this.minSize, | ||||||
|     this.maxSize, |     this.maxSize, | ||||||
|     this.shadow, |     this.shadow, | ||||||
|     this.isDarkModeEnabled, |  | ||||||
|     this.background, |     this.background, | ||||||
|     super.key, |     super.key, | ||||||
|   }); |   }); | ||||||
| @ -52,9 +51,6 @@ abstract class CardComponent extends Component { | |||||||
|   /// Drop shadow |   /// Drop shadow | ||||||
|   final BoxShadow? shadow; |   final BoxShadow? shadow; | ||||||
| 
 | 
 | ||||||
|   /// Is this component in dark mode or not |  | ||||||
|   final bool? isDarkModeEnabled; |  | ||||||
| 
 |  | ||||||
|   /// Background of the card |   /// Background of the card | ||||||
|   final Widget? background; |   final Widget? background; | ||||||
| } | } | ||||||
|  | |||||||
| @ -41,7 +41,6 @@ abstract class InformationCardComponent extends CardComponent | |||||||
|       offset: Offset(0, 5), |       offset: Offset(0, 5), | ||||||
|       color: Color.fromRGBO(0, 0, 0, 0.05), |       color: Color.fromRGBO(0, 0, 0, 0.05), | ||||||
|     ), |     ), | ||||||
|     super.isDarkModeEnabled = false, |  | ||||||
|     super.background, |     super.background, | ||||||
|     super.key, |     super.key, | ||||||
|   }); |   }); | ||||||
|  | |||||||
| @ -19,7 +19,6 @@ abstract class $InformationCardComponentCWProxy { | |||||||
|   InformationCardComponent minSize(Size? minSize); |   InformationCardComponent minSize(Size? minSize); | ||||||
|   InformationCardComponent maxSize(Size? maxSize); |   InformationCardComponent maxSize(Size? maxSize); | ||||||
|   InformationCardComponent shadow(BoxShadow? shadow); |   InformationCardComponent shadow(BoxShadow? shadow); | ||||||
|   InformationCardComponent isDarkModeEnabled(bool? isDarkModeEnabled); |  | ||||||
|   InformationCardComponent background(Widget? background); |   InformationCardComponent background(Widget? background); | ||||||
|   InformationCardComponent key(Key? key); |   InformationCardComponent key(Key? key); | ||||||
|   InformationCardComponent call({ |   InformationCardComponent call({ | ||||||
| @ -35,7 +34,6 @@ abstract class $InformationCardComponentCWProxy { | |||||||
|     Size? minSize, |     Size? minSize, | ||||||
|     Size? maxSize, |     Size? maxSize, | ||||||
|     BoxShadow? shadow, |     BoxShadow? shadow, | ||||||
|     bool? isDarkModeEnabled, |  | ||||||
|     Widget? background, |     Widget? background, | ||||||
|     Key? key, |     Key? key, | ||||||
|   }); |   }); | ||||||
|  | |||||||
| @ -43,7 +43,6 @@ abstract class QuoteCardComponent extends CardComponent | |||||||
|       offset: Offset(0, 5), |       offset: Offset(0, 5), | ||||||
|       color: Color.fromRGBO(0, 0, 0, 0.05), |       color: Color.fromRGBO(0, 0, 0, 0.05), | ||||||
|     ), |     ), | ||||||
|     super.isDarkModeEnabled = false, |  | ||||||
|     super.background, |     super.background, | ||||||
|     super.key, |     super.key, | ||||||
|   }); |   }); | ||||||
|  | |||||||
| @ -21,7 +21,6 @@ abstract class $QuoteCardComponentCWProxy { | |||||||
|   QuoteCardComponent minSize(Size? minSize); |   QuoteCardComponent minSize(Size? minSize); | ||||||
|   QuoteCardComponent maxSize(Size? maxSize); |   QuoteCardComponent maxSize(Size? maxSize); | ||||||
|   QuoteCardComponent shadow(BoxShadow? shadow); |   QuoteCardComponent shadow(BoxShadow? shadow); | ||||||
|   QuoteCardComponent isDarkModeEnabled(bool? isDarkModeEnabled); |  | ||||||
|   QuoteCardComponent background(Widget? background); |   QuoteCardComponent background(Widget? background); | ||||||
|   QuoteCardComponent key(Key? key); |   QuoteCardComponent key(Key? key); | ||||||
|   QuoteCardComponent call({ |   QuoteCardComponent call({ | ||||||
| @ -39,7 +38,6 @@ abstract class $QuoteCardComponentCWProxy { | |||||||
|     Size? minSize, |     Size? minSize, | ||||||
|     Size? maxSize, |     Size? maxSize, | ||||||
|     BoxShadow? shadow, |     BoxShadow? shadow, | ||||||
|     bool? isDarkModeEnabled, |  | ||||||
|     Widget? background, |     Widget? background, | ||||||
|     Key? key, |     Key? key, | ||||||
|   }); |   }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user