CommonScaffold constructor

CommonScaffold({
  1. String appTitle = '',
  2. required Widget bodyData,
  3. Decoration? bodyDecoration,
  4. bool centerTitle = true,
  5. bool showFAB = false,
  6. dynamic showDrawer = false,
  7. dynamic drawer,
  8. dynamic endDrawer,
  9. Color? backGroundColor = UIData.windowBg,
  10. dynamic actionFirstIcon = Icons.search,
  11. dynamic scaffoldKey,
  12. dynamic actionButtons,
  13. dynamic appBar,
  14. bool showBottomNav = true,
  15. Widget? bottomNav,
  16. dynamic centerDocked = false,
  17. dynamic floatingIcon,
  18. double elevation = 0.0,
  19. bool isLoading = false,
  20. bool isBackLoading = false,
  21. bool hasLeading = true,
  22. bool hideAppbar = false,
  23. bool safeBody = true,
  24. bool noAppBar = false,
  25. bool noStatusBar = false,
  26. bool statusBarPadding = false,
  27. Function? onBack,
  28. bool noLeadingBack = false,
  29. bool hasNoWrapper = false,
  30. bool drawBottom = false,
  31. bool isEmpty = false,
  32. Color? appColor = UIData.windowBg,
  33. Color? titleColor = UIData.pureWhite,
  34. double? height,
  35. Function? onBodyClick,
  36. Color drawBottomColor = UIData.windowBg,
  37. bool isDarkLeading = false,
  38. bool? isBodyLoading,
  39. Widget? loadingView,
})

Implementation

CommonScaffold({
  this.appTitle = '',
  required this.bodyData,
  this.bodyDecoration,
  this.centerTitle = true,
  this.showFAB = false,
  this.showDrawer = false,
  this.drawer,
  this.endDrawer,
  this.backGroundColor = UIData.windowBg,
  this.actionFirstIcon = Icons.search,
  this.scaffoldKey,
  this.actionButtons,
  this.appBar,
  this.showBottomNav = true,
  this.bottomNav,
  this.centerDocked = false,
  this.floatingIcon,
  this.elevation = 0.0,
  this.isLoading = false,
  this.isBackLoading = false,
  this.hasLeading = true,
  this.hideAppbar = false,
  this.safeBody = true,
  this.noAppBar = false,
  this.noStatusBar = false,
  this.statusBarPadding = false,
  this.onBack,
  this.noLeadingBack = false,
  this.hasNoWrapper = false,
  this.drawBottom = false,
  this.isEmpty = false,
  this.appColor = UIData.windowBg,
  this.titleColor = UIData.pureWhite,
  this.height,
  this.onBodyClick,
  this.drawBottomColor = UIData.windowBg,
  this.isDarkLeading = false,
  this.isBodyLoading,
  this.loadingView,
});