UiPageScaffold constructor

const UiPageScaffold({
  1. Key? key,
  2. required Widget body,
  3. Widget? topBar,
  4. Widget? bottomBar,
  5. Color? backgroundColor,
  6. UiSafeViewportMode safeViewportMode = UiSafeViewportMode.all,
  7. EdgeInsets safeAreaMinimum = EdgeInsets.zero,
  8. SystemUiOverlayStyle? systemOverlayStyle,
  9. bool syncSystemBars = true,
  10. bool leftSafeInset = true,
  11. bool rightSafeInset = true,
  12. bool showTopDivider = false,
  13. bool showBottomDivider = false,
  14. bool paintTopInsetWithTopBar = false,
  15. Color? topInsetColor,
  16. bool scrollFade = true,
  17. Color? scrollFadeBackgroundColor,
  18. bool scrollFadeTop = true,
  19. bool scrollFadeBottom = true,
  20. double scrollFadeExtent = 128,
  21. double scrollFadeWideExtent = 72,
  22. double scrollFadeBottomExtent = 48,
  23. double scrollFadeHorizontalInset = 0,
  24. double scrollFadeMaxOpacity = 0.74,
  25. bool scrollFadeUsesSafeArea = true,
  26. bool resizeBodyForKeyboard = false,
  27. Future<void> onRefresh()?,
  28. UiRefresherController? refreshController,
  29. UiRefreshIndicatorBuilder? refreshIndicatorBuilder,
  30. ValueChanged<UiRefreshStatus>? onRefreshStatusChanged,
  31. UiRefreshErrorCallback? onRefreshError,
  32. bool refreshEnabled = true,
  33. 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);