CustomScaffold constructor
const
CustomScaffold({
- PreferredSizeWidget? appBar,
- GlobalKey<
ScaffoldState> ? scaffoldKey, - Widget? body,
- Widget? endDrawer,
- Widget? drawer,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- Widget? floatingActionButton,
- Color? backgroundColor = Colors.white,
- bool extendBody = false,
- bool isUnKeyboard = true,
- bool resizeToAvoidBottomInset = true,
- bool useSafeArea = true,
- int? imageIndex,
- Key? key,
A custom scaffold widget that provides a common structure for app screens.
It wraps the standard Scaffold and adds some convenient features like automatically unfocusing the keyboard on tap, and optionally wrapping the body in a SafeArea.
All fields are direct correspondents to the fields in the Scaffold widget, unless otherwise specified.
Implementation
const CustomScaffold({
this.appBar,
this.scaffoldKey,
this.body,
this.endDrawer,
this.drawer,
this.floatingActionButtonLocation,
this.bottomNavigationBar,
this.floatingActionButton,
this.persistentFooterButtons,
this.backgroundColor = Colors.white,
this.extendBody = false,
this.isUnKeyboard = true,
this.resizeToAvoidBottomInset = true,
this.useSafeArea = true,
this.imageIndex,
super.key,
});