FScaffoldStyle.inherit constructor

FScaffoldStyle.inherit({
  1. required FColorScheme colorScheme,
  2. required FStyle style,
})

Creates a FScaffoldStyle that inherits its properties from the provided colorScheme and style.

Implementation

FScaffoldStyle.inherit({required FColorScheme colorScheme, required FStyle style})
    : this(
        backgroundColor: colorScheme.background,
        contentPadding: style.pagePadding.copyWith(top: 0, bottom: 0),
        footerDecoration: BoxDecoration(
          border: Border(
            top: BorderSide(
              color: colorScheme.border,
              width: style.borderWidth,
            ),
          ),
        ),
      );