ScreenWidget constructor

ScreenWidget({
  1. Key? key,
  2. GlobalKey<ScaffoldState>? scaffoldKey,
  3. bool showAppBar = false,
  4. bool isAccent = false,
  5. bool isStatic = false,
  6. bool isDefaultScaffold = false,
  7. String appBarText = '',
  8. PreferredSizeWidget? appBarWidget,
  9. EdgeInsetsGeometry? padding,
  10. Widget? child,
  11. List<Widget>? children,
  12. Widget? bottomNavigationBar,
  13. Brightness? statusBarBrightness,
  14. Color? backgroundColor,
  15. SafeAreaConfig safeAreaConfig = const SafeAreaConfig(),
  16. Widget? floatingActionButton,
  17. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  18. FloatingActionButtonLocation? floatingActionButtonLocation,
  19. CustomOverlay? errorOverlay,
  20. Widget? loaderWidget,
  21. Map<String, CustomOverlay>? overlayEvents,
  22. List<Widget>? fixedOverlayWidgets,
  23. Function? dispose,
})

Implementation

ScreenWidget({
  Key? key,
  this.scaffoldKey,
  this.showAppBar = false,
  this.isAccent = false,
  this.isStatic = false,
  this.isDefaultScaffold = false,
  this.appBarText = '',
  this.appBarWidget,
  this.padding,
  this.child,
  this.children,
  this.bottomNavigationBar,
  this.statusBarBrightness,
  this.backgroundColor,
  this.safeAreaConfig = const SafeAreaConfig(),
  this.floatingActionButton,
  this.floatingActionButtonAnimator,
  this.floatingActionButtonLocation,
  this.errorOverlay,
  this.loaderWidget,
  this.overlayEvents,
  this.fixedOverlayWidgets,
  this.dispose,
})  : assert(child != null || children != null),
      super(key: key);