@@ -454,57 +454,57 @@ class FTileGroupStyle extends FLabelStyle with _$FTileGroupStyleFunctions {
454454 required FStyle style,
455455 required FHapticFeedback hapticFeedback,
456456 }) => .new (
457- decoration: ShapeDecoration (
458- shape: RoundedSuperellipseBorder (
459- side: BorderSide (color: colors.border, width: style.borderWidth),
460- borderRadius: style.borderRadius.md,
461- ),
462- ),
463- dividerColor: .all (colors.border),
464- dividerWidth: style.borderWidth,
465- slideableTiles: const .all (true ),
466- slidePressHapticFeedback: hapticFeedback.selectionClick,
467- labelTextStyle: FVariants .from (
468- typography.sm.copyWith (
469- color: style.formFieldStyle.labelTextStyle.base .color ?? colors.foreground,
470- fontWeight: .w600,
471- ),
472- variants: {
473- [.disabled]: .delta (color: colors.disable (colors.foreground)),
474- },
475- ),
476- tileStyles: FTileStyles (
477- FVariants .from (
478- FTileStyle .inherit (
457+ decoration: ShapeDecoration (
458+ shape: RoundedSuperellipseBorder (
459+ side: BorderSide (color: colors.border, width: style.borderWidth),
460+ borderRadius: style.borderRadius.md,
461+ ),
462+ ),
463+ dividerColor: .all (colors.border),
464+ dividerWidth: style.borderWidth,
465+ slideableTiles: const .all (true ),
466+ slidePressHapticFeedback: hapticFeedback.selectionClick,
467+ labelTextStyle: FVariants .from (
468+ typography.sm.copyWith (
469+ color: style.formFieldStyle.labelTextStyle.base .color ?? colors.foreground,
470+ fontWeight: .w600,
471+ ),
472+ variants: {
473+ [.disabled]: .delta (color: colors.disable (colors.foreground)),
474+ },
475+ ),
476+ tileStyles: FTileStyles (
477+ FVariants .from (
478+ FTileStyle .inherit (
479+ colors: colors,
480+ typography: typography,
481+ style: style,
482+ ).copyWith (contentDecoration: .delta ([.all (const .shapeDelta (shape: RoundedSuperellipseBorder ()))])),
483+ variants: {
484+ [.primary]: const .delta (),
485+ [.destructive]: .delta (
486+ contentStyle: FTileContentStyle .inherit (
479487 colors: colors,
480488 typography: typography,
481- style: style,
482- ).copyWith (contentDecoration: .delta ([.all (const .shapeDelta (shape: RoundedSuperellipseBorder ()))])),
483- variants: {
484- [.primary]: const .delta (),
485- [.destructive]: .delta (
486- contentStyle: FTileContentStyle .inherit (
487- colors: colors,
488- typography: typography,
489- prefix: colors.destructive,
490- foreground: colors.destructive,
491- mutedForeground: colors.destructive,
492- ),
493- rawContentStyle: FRawTileContentStyle .inherit (
494- colors: colors,
495- typography: typography,
496- prefix: colors.destructive,
497- color: colors.destructive,
498- ),
499- ),
500- },
489+ prefix: colors.destructive,
490+ foreground: colors.destructive,
491+ mutedForeground: colors.destructive,
492+ ),
493+ rawContentStyle: FRawTileContentStyle .inherit (
494+ colors: colors,
495+ typography: typography,
496+ prefix: colors.destructive,
497+ color: colors.destructive,
498+ ),
501499 ),
502- ),
503- descriptionTextStyle: style.formFieldStyle.descriptionTextStyle.apply ([
504- .all (.delta (fontSize: typography.xs2.fontSize, height: typography.xs2.height)),
505- ]),
506- errorTextStyle: style.formFieldStyle.errorTextStyle.apply ([
507- .all (.delta (fontSize: typography.xs2.fontSize, height: typography.xs2.height)),
508- ]),
509- );
500+ },
501+ ),
502+ ),
503+ descriptionTextStyle: style.formFieldStyle.descriptionTextStyle.apply ([
504+ .all (.delta (fontSize: typography.xs2.fontSize, height: typography.xs2.height)),
505+ ]),
506+ errorTextStyle: style.formFieldStyle.errorTextStyle.apply ([
507+ .all (.delta (fontSize: typography.xs2.fontSize, height: typography.xs2.height)),
508+ ]),
509+ );
510510}
0 commit comments