BaseScaffold constructor

BaseScaffold({
  1. Widget? body,
  2. Widget? toolbar,
  3. bool isScreenLoading = false,
  4. bool isScreenLoadingWithBackground = false,
  5. bool showToolbar = true,
  6. dynamic toolbarLeftIcon,
  7. Color? toolbarLeftIconColor,
  8. String? toolbarLeftIconType,
  9. Function? toolbarLeftIconClick,
  10. dynamic toolbarRightIcon,
  11. Color? toolbarRightIconColor,
  12. String? toolbarRightIconType,
  13. Function? toolbarRightIconClick,
  14. String? toolbarTitle,
  15. String? toolbarRightText,
  16. Function? toolbarRightTextClick,
  17. String? toolbarLeftText,
  18. Function? toolbarLeftTextClick,
  19. double toolbarHeight = 60,
  20. Widget? toolbarLeftChild,
  21. Widget? toolbarCenterChild,
  22. Widget? toolbarRightChild,
  23. Widget? screenLoaderView,
  24. Widget? backgroundScreenLoaderView,
  25. Color bodyBackgroundColor = Colors.white,
  26. Color scaffoldBackgroundColor = Colors.white,
  27. Color toolbarBackgroundColor = Colors.white,
  28. TextStyle? toolbarLeftTextStyle,
  29. TextStyle? toolbarTitleTextStyle,
  30. TextStyle? toolbarRightTextStyle,
  31. Widget? floatingActionButton,
  32. FloatingActionButtonLocation? floatingActionButtonLocation,
  33. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  34. List<Widget>? persistentFooterButtons,
  35. Widget? drawer,
  36. Widget? endDrawer,
  37. Widget? bottomNavigationBar,
  38. Widget? bottomSheet,
  39. bool? resizeToAvoidBottomInset,
  40. bool primary = true,
  41. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  42. bool extendBody = false,
  43. bool extendBodyBehindAppBar = false,
  44. Color? drawerScrimColor,
  45. double? drawerEdgeDragWidth,
})

Default properties of Scaffold

Implementation

BaseScaffold({
  this.body,
  this.toolbar,
  this.isScreenLoading = false,
  this.isScreenLoadingWithBackground = false,
  this.showToolbar = true,
  this.toolbarLeftIcon,
  this.toolbarLeftIconColor,
  this.toolbarLeftIconType,
  this.toolbarLeftIconClick,
  this.toolbarRightIcon,
  this.toolbarRightIconColor,
  this.toolbarRightIconType,
  this.toolbarRightIconClick,
  this.toolbarTitle,
  this.toolbarRightText,
  this.toolbarRightTextClick,
  this.toolbarLeftText,
  this.toolbarLeftTextClick,
  this.toolbarHeight = 60,
  this.toolbarLeftChild,
  this.toolbarCenterChild,
  this.toolbarRightChild,
  this.screenLoaderView,
  this.backgroundScreenLoaderView,
  this.bodyBackgroundColor = Colors.white,
  this.scaffoldBackgroundColor = Colors.white,
  this.toolbarBackgroundColor = Colors.white,
  this.toolbarLeftTextStyle,
  this.toolbarTitleTextStyle,
  this.toolbarRightTextStyle,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.drawer,
  this.endDrawer,
  this.bottomNavigationBar,
  this.bottomSheet,
  this.resizeToAvoidBottomInset,
  this.primary = true,
  this.drawerDragStartBehavior = DragStartBehavior.start,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.drawerScrimColor,
  this.drawerEdgeDragWidth,
}) : assert(toolbarHeight > 50);