FDialogStyle.inherit constructor
FDialogStyle.inherit({
- required FStyle style,
- required FColors colors,
- required FTypography typography,
- required bool touch,
Creates a FDialogStyle that inherits its properties.
Implementation
factory FDialogStyle.inherit({
required FStyle style,
required FColors colors,
required FTypography typography,
required bool touch,
}) => .new(
decoration: ShapeDecoration(
shape: RoundedSuperellipseBorder(
side: BorderSide(color: colors.border, width: style.borderWidth),
borderRadius: style.borderRadius.md,
),
color: colors.card,
),
slideableActions: FVariants(
false,
variants: {
[.touch]: true,
},
),
slidePressHapticFeedback: style.hapticFeedback.selectionClick,
contentStyle: FDialogContentStyles.inherit(colors: colors, typography: typography, touch: touch),
);