BaseScaffold constructor
BaseScaffold({
- Widget? body,
- Widget? toolbar,
- bool isScreenLoading = false,
- bool isScreenLoadingWithBackground = false,
- bool showToolbar = true,
- dynamic toolbarLeftIcon,
- Color? toolbarLeftIconColor,
- String? toolbarLeftIconType,
- Function? toolbarLeftIconClick,
- dynamic toolbarRightIcon,
- Color? toolbarRightIconColor,
- String? toolbarRightIconType,
- Function? toolbarRightIconClick,
- String? toolbarTitle,
- String? toolbarRightText,
- Function? toolbarRightTextClick,
- String? toolbarLeftText,
- Function? toolbarLeftTextClick,
- double toolbarHeight = 60,
- Widget? toolbarLeftChild,
- Widget? toolbarCenterChild,
- Widget? toolbarRightChild,
- Widget? screenLoaderView,
- Widget? backgroundScreenLoaderView,
- Color bodyBackgroundColor = Colors.white,
- Color scaffoldBackgroundColor = Colors.white,
- Color toolbarBackgroundColor = Colors.white,
- TextStyle? toolbarLeftTextStyle,
- TextStyle? toolbarTitleTextStyle,
- TextStyle? toolbarRightTextStyle,
- Widget? floatingActionButton,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- Widget? drawer,
- Widget? endDrawer,
- Widget? bottomSheet,
- bool? resizeToAvoidBottomInset,
- bool primary = true,
- DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
- bool extendBody = false,
- bool extendBodyBehindAppBar = false,
- Color? drawerScrimColor,
- 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);