DrawerScaffold constructor
DrawerScaffold({
- PreferredSizeWidget? appBar,
- Widget? body,
- List<
BoxShadow> contentShadow = const [BoxShadow(color: const Color(0x44000000), offset: const Offset(0.0, 5.0), blurRadius: 20.0, spreadRadius: 10.0)], - List<
SideDrawer> ? drawers, - double? cornerRadius = 16.0,
- DrawerScaffoldController? controller,
- bool extendedBody = false,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- Widget? floatingActionButton,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- ScreenBuilder? builder,
- bool? enableGestures = true,
- Direction defaultDirection = Direction.left,
- Key? key,
- Widget? bottomSheet,
- bool extendBodyBehindAppBar = false,
- bool primary = true,
- bool? resizeToAvoidBottomInset,
- dynamic onSlide()?,
- dynamic onOpened()?,
- dynamic onClosed()?,
- Color? backgroundColor,
Implementation
DrawerScaffold({
this.appBar,
this.body,
this.contentShadow = const [
BoxShadow(
color: const Color(0x44000000),
offset: const Offset(0.0, 5.0),
blurRadius: 20.0,
spreadRadius: 10.0,
),
],
this.drawers,
this.cornerRadius = 16.0,
this.controller,
this.extendedBody = false,
this.bottomNavigationBar,
this.floatingActionButtonLocation,
this.floatingActionButton,
this.floatingActionButtonAnimator,
this.builder,
this.enableGestures = true,
this.defaultDirection = Direction.left,
Key? key,
this.bottomSheet,
this.extendBodyBehindAppBar = false,
this.persistentFooterButtons,
this.primary = true,
this.resizeToAvoidBottomInset,
this.onSlide,
this.onOpened,
this.onClosed,
this.backgroundColor,
}) : assert((drawers?.where((element) => element.peekMenu).length ?? 0) < 2,
"\n\nOnly can have one SideDrawer with peek menu\n"),
assert(body == null || builder == null, "Use either child or builder"),
super(key: key);