variantStyle property
The SheetStyle
to be applied to the variant sheet widget
Implementation
@override
get variantStyle => {
SheetVariant.text: const SheetStyle(
backgroundOpacity: 0,
borderStyle: BorderStyle.none,
),
SheetVariant.tonal: const SheetStyle(
backgroundOpacity: .12,
borderStyle: BorderStyle.none,
),
SheetVariant.filled: const SheetStyle(
backgroundOpacity: 1,
borderStyle: BorderStyle.none,
),
SheetVariant.elevated: const SheetStyle(
elevation: 1,
backgroundOpacity: 1,
borderStyle: BorderStyle.none,
),
SheetVariant.outlined: const SheetStyle(
backgroundOpacity: 0,
borderOpacity: 1,
borderWidth: 1,
borderStyle: BorderStyle.solid,
),
}.merge(super.variantStyle);