UiPageScaffold constructor
const
UiPageScaffold({
- Key? key,
- required Widget body,
- Widget? topBar,
- Widget? bottomBar,
- Color? backgroundColor,
- UiSafeViewportMode safeViewportMode = UiSafeViewportMode.all,
- EdgeInsets safeAreaMinimum = EdgeInsets.zero,
- SystemUiOverlayStyle? systemOverlayStyle,
- bool syncSystemBars = true,
- bool leftSafeInset = true,
- bool rightSafeInset = true,
- bool showTopDivider = false,
- bool showBottomDivider = false,
- bool paintTopInsetWithTopBar = false,
- Color? topInsetColor,
- bool scrollFade = true,
- Color? scrollFadeBackgroundColor,
- bool scrollFadeTop = true,
- bool scrollFadeBottom = true,
- double scrollFadeExtent = 128,
- double scrollFadeWideExtent = 72,
- double scrollFadeBottomExtent = 48,
- double scrollFadeHorizontalInset = 0,
- double scrollFadeMaxOpacity = 0.74,
- bool scrollFadeUsesSafeArea = true,
- bool resizeBodyForKeyboard = false,
- Future<
void> onRefresh()?, - UiRefresherController? refreshController,
- UiRefreshIndicatorBuilder? refreshIndicatorBuilder,
- ValueChanged<
UiRefreshStatus> ? onRefreshStatusChanged, - UiRefreshErrorCallback? onRefreshError,
- bool refreshEnabled = true,
- double refreshEdgeOffset = 0,
Implementation
const UiPageScaffold({
super.key,
required this.body,
this.topBar,
this.bottomBar,
this.backgroundColor,
this.safeViewportMode = UiSafeViewportMode.all,
this.safeAreaMinimum = EdgeInsets.zero,
this.systemOverlayStyle,
this.syncSystemBars = true,
this.leftSafeInset = true,
this.rightSafeInset = true,
this.showTopDivider = false,
this.showBottomDivider = false,
this.paintTopInsetWithTopBar = false,
this.topInsetColor,
this.scrollFade = true,
this.scrollFadeBackgroundColor,
this.scrollFadeTop = true,
this.scrollFadeBottom = true,
this.scrollFadeExtent = 128,
this.scrollFadeWideExtent = 72,
this.scrollFadeBottomExtent = 48,
this.scrollFadeHorizontalInset = 0,
this.scrollFadeMaxOpacity = 0.74,
this.scrollFadeUsesSafeArea = true,
this.resizeBodyForKeyboard = false,
this.onRefresh,
this.refreshController,
this.refreshIndicatorBuilder,
this.onRefreshStatusChanged,
this.onRefreshError,
this.refreshEnabled = true,
this.refreshEdgeOffset = 0,
}) : assert(refreshEdgeOffset >= 0);