This commit is contained in:
+2
-2
@@ -55,11 +55,11 @@ class FileSelectionButtonThemeExtensionDefault
|
||||
focusedStyle: style,
|
||||
hoveredStyle: style.copyWith(
|
||||
backgroundColors:
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.92)),
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.80)),
|
||||
),
|
||||
tappedStyle: style.copyWith(
|
||||
backgroundColors:
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.92)),
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.75)),
|
||||
),
|
||||
selectedStyle: style,
|
||||
disabledStyle: style.copyWith(
|
||||
|
||||
+3
-3
@@ -43,7 +43,7 @@ class SimpleIconButtonThemeExtensionDefault
|
||||
radius: (theme.buttonTheme.shape is RoundedRectangleBorder)
|
||||
? (theme.buttonTheme.shape as RoundedRectangleBorder).borderRadius
|
||||
: null,
|
||||
padding: theme.buttonTheme.padding,
|
||||
padding: const EdgeInsets.all(5),
|
||||
foregroundColors: foregroundColor,
|
||||
backgroundColors: backgroundColor,
|
||||
animationDuration: Duration.zero,
|
||||
@@ -54,11 +54,11 @@ class SimpleIconButtonThemeExtensionDefault
|
||||
focusedStyle: style,
|
||||
hoveredStyle: style.copyWith(
|
||||
backgroundColors:
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.92)),
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.80)),
|
||||
),
|
||||
tappedStyle: style.copyWith(
|
||||
backgroundColors:
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.92)),
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.75)),
|
||||
),
|
||||
disabledStyle: style.copyWith(
|
||||
foregroundColors:
|
||||
|
||||
+6
-3
@@ -37,10 +37,11 @@ class SymbolButtonThemeExtensionDefault extends SymbolButtonThemeExtension {
|
||||
factory SymbolButtonThemeExtensionDefault.from(ThemeData theme) {
|
||||
final backgroundColor = MultiColor.single(theme.colorScheme.primary);
|
||||
final foregroundColor = MultiColor.single(theme.colorScheme.onPrimary);
|
||||
final textColor = MultiColor.single(theme.textTheme.bodyMedium?.color);
|
||||
|
||||
final style = SymbolButtonStyle(
|
||||
labelStyle:
|
||||
theme.textTheme.labelLarge?.copyWith(color: foregroundColor.color),
|
||||
theme.textTheme.labelLarge?.copyWith(color: textColor.color),
|
||||
dimension: theme.buttonTheme.height * 1.5,
|
||||
radius: (theme.buttonTheme.shape is RoundedRectangleBorder)
|
||||
? (theme.buttonTheme.shape as RoundedRectangleBorder).borderRadius
|
||||
@@ -56,11 +57,11 @@ class SymbolButtonThemeExtensionDefault extends SymbolButtonThemeExtension {
|
||||
focusedStyle: style,
|
||||
hoveredStyle: style.copyWith(
|
||||
backgroundColors:
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.92)),
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.80)),
|
||||
),
|
||||
tappedStyle: style.copyWith(
|
||||
backgroundColors:
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.92)),
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.75)),
|
||||
),
|
||||
disabledStyle: style.copyWith(
|
||||
foregroundColors:
|
||||
@@ -71,6 +72,8 @@ class SymbolButtonThemeExtensionDefault extends SymbolButtonThemeExtension {
|
||||
selectedStyle: style.copyWith(
|
||||
backgroundColors:
|
||||
MultiColor.single(theme.colorScheme.primary.withOpacity(0.92)),
|
||||
borderColors: textColor,
|
||||
stroke: 3,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
+4
-4
@@ -45,15 +45,15 @@ class CardThemeExtensionDefault extends CardThemeExtension {
|
||||
factory CardThemeExtensionDefault.from(ThemeData theme) =>
|
||||
CardThemeExtensionDefault(
|
||||
radius: const BorderRadius.all(Radius.circular(12)),
|
||||
padding: theme.cardTheme.margin ?? const EdgeInsets.all(4),
|
||||
backgroundColors: MultiColor.single(theme.cardTheme.color),
|
||||
borderColors: MultiColor.single(theme.cardTheme.color),
|
||||
padding: theme.cardTheme.margin ?? const EdgeInsets.all(15),
|
||||
backgroundColors: MultiColor.single(theme.cardColor),
|
||||
borderColors: MultiColor.single(theme.canvasColor),
|
||||
minSize: const Size(330, 0),
|
||||
maxSize: const Size(390, double.infinity),
|
||||
titleStyle: theme.textTheme.titleLarge,
|
||||
subtitleStyle: theme.textTheme.titleMedium,
|
||||
bodyStyle: theme.textTheme.bodyMedium,
|
||||
stroke: 1,
|
||||
stroke: 0,
|
||||
shadow: null,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user