CustomScaffold constructor

const CustomScaffold({
  1. PreferredSizeWidget? appBar,
  2. GlobalKey<ScaffoldState>? scaffoldKey,
  3. Widget? body,
  4. Widget? endDrawer,
  5. Widget? drawer,
  6. FloatingActionButtonLocation? floatingActionButtonLocation,
  7. Widget? bottomNavigationBar,
  8. Widget? floatingActionButton,
  9. List<Widget>? persistentFooterButtons,
  10. Color? backgroundColor = Colors.white,
  11. bool extendBody = false,
  12. bool isUnKeyboard = true,
  13. bool resizeToAvoidBottomInset = true,
  14. bool useSafeArea = true,
  15. int? imageIndex,
  16. 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,
});