EasyDashboard constructor

const EasyDashboard({
  1. Key? key,
  2. required EasyAppController controller,
  3. EasyBody? body,
  4. Duration duration = const Duration(milliseconds: 300),
  5. double mobileBreakpoint = 600,
  6. double tabletBreakpoint = 900,
  7. MobileView mobileView = const MobileView(),
  8. TabletView tabletView = const TabletView(),
  9. DesktopView desktopView = const DesktopView(),
  10. EasyDeviceMode tabletMode = EasyDeviceMode.tablet,
  11. EasyDeviceMode mobileMode = EasyDeviceMode.mobile,
  12. EasyDeviceMode desktopMode = EasyDeviceMode.desktop,
  13. FloatingActionButtonLocation? floatingActionButtonLocation,
  14. FloatingActionButton? floatingActionButton,
  15. SystemUiOverlayStyle? systemOverlayStyle,
  16. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  17. double appBarHeight = kToolbarHeight,
  18. bool centerTitle = true,
  19. Color backgroundColor = Colors.white,
  20. Icon navigationIcon = const Icon(Icons.menu),
  21. double navigationIconSplashRadius = 20,
  22. Color appBarColor = Colors.blue,
  23. Color sideBarColor = Colors.white,
  24. List<Widget>? appBarActions,
  25. required DrawerBuilder drawer,
})

Easy Dashboard

A simple yet powerful widget for creating fast Dashboards.

Implementation

const EasyDashboard({
  Key? key,
  required this.controller,
  this.body,
  this.duration = const Duration(milliseconds: 300),
  this.mobileBreakpoint = 600,
  this.tabletBreakpoint = 900,
  this.mobileView = const MobileView(),
  this.tabletView = const TabletView(),
  this.desktopView = const DesktopView(),
  this.tabletMode = EasyDeviceMode.tablet,
  this.mobileMode = EasyDeviceMode.mobile,
  this.desktopMode = EasyDeviceMode.desktop,
  this.floatingActionButtonLocation,
  this.floatingActionButton,
  this.systemOverlayStyle,
  this.floatingActionButtonAnimator,
  this.appBarHeight = kToolbarHeight,
  this.centerTitle = true,
  this.backgroundColor = Colors.white,
  this.navigationIcon = const Icon(Icons.menu),
  this.navigationIconSplashRadius = 20,
  this.appBarColor = Colors.blue,
  this.sideBarColor = Colors.white,
  this.appBarActions,
  required this.drawer,
})  : assert(backgroundColor != Colors.transparent),
      super(key: key);