FDialogStyle.inherit constructor

FDialogStyle.inherit({
  1. required FStyle style,
  2. required FColorScheme colorScheme,
  3. required FTypography typography,
})

Creates a FDialogStyle that inherits its properties from the given style, colorScheme, and typography.

Implementation

FDialogStyle.inherit({
  required FStyle style,
  required FColorScheme colorScheme,
  required FTypography typography,
}) : this(
        decoration: BoxDecoration(
          borderRadius: style.borderRadius,
          color: colorScheme.background,
        ),
        horizontalStyle: FDialogContentStyle.inherit(
          colorScheme: colorScheme,
          typography: typography,
          padding: const EdgeInsets.symmetric(horizontal: 25, vertical: 25),
          actionPadding: 7,
        ),
        verticalStyle: FDialogContentStyle.inherit(
          colorScheme: colorScheme,
          typography: typography,
          padding: const EdgeInsets.symmetric(horizontal: 30, vertical: 25),
          actionPadding: 8,
        ),
      );