ExtendedScaffold constructor

const ExtendedScaffold({
  1. Key? key,
  2. bool safeLeft = false,
  3. bool safeTop = false,
  4. bool safeRight = false,
  5. bool safeBottom = false,
  6. bool isStack = false,
  7. bool isScroll = false,
  8. bool onWillPopOverlayClose = false,
  9. bool useSingleChildScrollView = true,
  10. bool extendBody = false,
  11. bool extendBodyBehindAppBar = false,
  12. bool primary = true,
  13. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  14. bool drawerEnableOpenDragGesture = true,
  15. bool endDrawerEnableOpenDragGesture = true,
  16. Widget? appBar,
  17. Widget? body,
  18. EdgeInsetsGeometry? padding,
  19. Widget? floatingActionButton,
  20. FloatingActionButtonLocation? floatingActionButtonLocation,
  21. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  22. List<Widget>? persistentFooterButtons,
  23. Widget? drawer,
  24. Widget? endDrawer,
  25. Widget? bottomNavigationBar,
  26. Widget? bottomSheet,
  27. bool? resizeToAvoidBottomInset,
  28. DrawerCallback? onDrawerChanged,
  29. DrawerCallback? onEndDrawerChanged,
  30. double? drawerEdgeDragWidth,
  31. Color? drawerScrimColor,
  32. WillPopCallback? onWillPop,
  33. double? appBarHeight,
  34. List<Widget>? children,
  35. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  36. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  37. Axis direction = Axis.vertical,
  38. EdgeInsetsGeometry? margin,
  39. Decoration? decoration,
  40. RefreshConfig? refreshConfig,
  41. String? restorationId,
  42. Color? backgroundColor,
  43. SystemUiOverlayStyle? systemOverlayStyle,
  44. AlignmentDirectional persistentFooterAlignment = AlignmentDirectional.centerEnd,
})

Implementation

const ExtendedScaffold({
  super.key,
  this.safeLeft = false,
  this.safeTop = false,
  this.safeRight = false,
  this.safeBottom = false,
  this.isStack = false,
  this.isScroll = false,
  this.onWillPopOverlayClose = false,
  this.useSingleChildScrollView = true,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.primary = true,
  this.drawerDragStartBehavior = DragStartBehavior.start,
  this.drawerEnableOpenDragGesture = true,
  this.endDrawerEnableOpenDragGesture = true,
  this.appBar,
  this.body,
  this.padding,
  this.floatingActionButton,

  /// 悬浮按钮
  this.floatingActionButtonLocation,

  /// 悬浮按钮位置
  this.floatingActionButtonAnimator,

  /// 悬浮按钮动画
  this.persistentFooterButtons,

  /// 固定在下方显示的按钮,比如对话框下方的确定、取消按钮
  this.drawer,

  /// 侧滑菜单左
  this.endDrawer,

  /// 侧滑菜单右
  this.bottomNavigationBar,

  /// 底部导航
  this.bottomSheet,

  /// 类似于 Android 中的 android:windowSoftInputMode=”adjustResize”,
  /// 控制界面内容 body 是否重新布局来避免底部被覆盖了,比如当键盘显示的时候,
  /// 重新布局避免被键盘盖住内容。默认值为 true。
  this.resizeToAvoidBottomInset,
  this.onDrawerChanged,
  this.onEndDrawerChanged,
  this.drawerEdgeDragWidth,
  this.drawerScrimColor,
  this.onWillPop,
  this.appBarHeight,
  this.children,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.direction = Axis.vertical,
  this.margin,
  this.decoration,
  this.refreshConfig,
  this.restorationId,
  this.backgroundColor,
  this.systemOverlayStyle,
  this.persistentFooterAlignment = AlignmentDirectional.centerEnd,
});