ExtendedScaffold constructor
const
ExtendedScaffold({
- Key? key,
- bool safeLeft = false,
- bool safeTop = false,
- bool safeRight = false,
- bool safeBottom = false,
- bool isStack = false,
- bool isScroll = false,
- bool onWillPopOverlayClose = false,
- bool useSingleChildScrollView = true,
- bool extendBody = false,
- bool extendBodyBehindAppBar = false,
- bool primary = true,
- DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
- bool drawerEnableOpenDragGesture = true,
- bool endDrawerEnableOpenDragGesture = true,
- Widget? appBar,
- Widget? body,
- EdgeInsetsGeometry? padding,
- Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- Widget? drawer,
- Widget? endDrawer,
- Widget? bottomSheet,
- bool? resizeToAvoidBottomInset,
- DrawerCallback? onDrawerChanged,
- DrawerCallback? onEndDrawerChanged,
- double? drawerEdgeDragWidth,
- Color? drawerScrimColor,
- WillPopCallback? onWillPop,
- double? appBarHeight,
- List<
Widget> ? children, - MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- Axis direction = Axis.vertical,
- EdgeInsetsGeometry? margin,
- Decoration? decoration,
- RefreshConfig? refreshConfig,
- String? restorationId,
- Color? backgroundColor,
- SystemUiOverlayStyle? systemOverlayStyle,
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,
});