FDialogContentStyle.inherit constructor

FDialogContentStyle.inherit({
  1. required FColorScheme colorScheme,
  2. required FTypography typography,
  3. required EdgeInsets padding,
  4. required double actionPadding,
})

Creates a FDialogContentStyle that inherits its properties from colorScheme and typography.

Implementation

FDialogContentStyle.inherit({
  required FColorScheme colorScheme,
  required FTypography typography,
  required this.padding,
  required this.actionPadding,
})  : titleTextStyle = typography.lg.copyWith(
        fontWeight: FontWeight.w600,
        color: colorScheme.foreground,
      ),
      bodyTextStyle = typography.sm.copyWith(color: colorScheme.mutedForeground);