FacioScaffold constructor

const FacioScaffold({
  1. Key? key,
  2. required Widget child,
  3. List<Widget>? appBarActions,
  4. bool hasBackButton = true,
  5. Color appBarColor = Colors.transparent,
  6. Widget? appBarLeading,
  7. VoidCallback? appBarLogoutOnPressed,
  8. Color? appBarShadowColor,
  9. Widget? appBarTitle,
  10. Color canvasColor = ColorPalette.baseWhite,
  11. EdgeInsets canvasPadding = EdgeInsets.zero,
  12. double elevation = 0.0,
  13. bool keyboardPushScreen = true,
  14. VoidCallback? onBackPressed,
})

Implementation

const FacioScaffold({
  final Key? key,
  required final Widget child,
  final List<Widget>? appBarActions,
  final bool hasBackButton = true,
  final bool hasAppBarLogo = false,
  final Color appBarColor = Colors.transparent,
  final Widget? appBarLeading,
  final VoidCallback? appBarLogoutOnPressed,
  final Color? appBarShadowColor,
  final Widget? appBarTitle,
  final Color canvasColor = ColorPalette.baseWhite,
  final EdgeInsets canvasPadding = EdgeInsets.zero,
  final double elevation = 0.0,
  final bool keyboardPushScreen = true,
  final VoidCallback? onBackPressed,
})  : assert(hasBackButton || (!hasBackButton && onBackPressed == null)),
      assert((hasAppBarLogo && appBarTitle == null) ||
          (!hasAppBarLogo && appBarTitle != null)),
      _child = child,
      _appBarActions = appBarActions,
      _hasBackButton = hasBackButton,
      _hasAppBarLogo = hasAppBarLogo,
      _appBarColor = appBarColor,
      _appBarLeading = appBarLeading,
      _appBarLogoutOnPressed = appBarLogoutOnPressed,
      _appBarShadowColor = appBarShadowColor,
      _appBarTitle = appBarTitle,
      _canvasColor = canvasColor,
      _canvasPadding = canvasPadding,
      _elevation = elevation,
      _keyboardPushScreen = keyboardPushScreen,
      _onBackPressed = onBackPressed,
      super(key: key);