variantStyle property

  1. @override
SheetStyleByVariant variantStyle
override

The SheetStyle to be applied to the variant sheet widget

Implementation

@override
get variantStyle => {
      SheetVariant.text: SheetStyle(
        foregroundColor: colorTheme.onSurface,
        backgroundColor: colorTheme.surface,
      ),
      SheetVariant.tonal: SheetStyle(
        backgroundOpacity: .3,
        foregroundColor: colorTheme.onSurface,
        backgroundColor: colorTheme.surfaceVariant,
      ),
      SheetVariant.filled: SheetStyle(
        backgroundColor: colorTheme.surfaceVariant,
      ),
      SheetVariant.elevated: SheetStyle(
        surfaceTint: colorTheme.surfaceTint,
        backgroundColor: colorTheme.surface,
      ),
      SheetVariant.outlined: SheetStyle(
        foregroundColor: colorTheme.onSurface,
        backgroundColor: colorTheme.surface,
      ),
    }.merge(super.variantStyle);