getLayout method
Implementation
Widget getLayout(EasyDeviceMode mode, BoxConstraints constraints) {
switch (mode) {
case EasyDeviceMode.mobile:
return EasyMobileLayout(
controller: controller,
backgroundColor: backgroundColor,
drawer: drawer,
appBarColor: appBarColor,
mobile: mobileView,
centerTitle: centerTitle,
constraints: constraints,
duration: duration,
appBarHeight: appBarHeight,
navigationIcon: navigationIcon,
navigationIconSplashRadius: navigationIconSplashRadius,
appBarActions: appBarActions,
sideBarColor: sideBarColor,
);
case EasyDeviceMode.tablet:
return EasyTabletLayout(
controller: controller,
backgroundColor: backgroundColor,
drawer: drawer,
appBarColor: appBarColor,
sideBarColor: sideBarColor,
centerTitle: centerTitle,
constraints: constraints,
duration: duration,
tablet: tabletView,
appBarHeight: appBarHeight,
navigationIcon: navigationIcon,
navigationIconSplashRadius: navigationIconSplashRadius,
appBarActions: appBarActions,
);
case EasyDeviceMode.desktop:
return EasyDesktopLayout(
controller: controller,
backgroundColor: backgroundColor,
drawer: drawer,
appBarColor: appBarColor,
sideBarColor: sideBarColor,
centerTitle: centerTitle,
constraints: constraints,
duration: duration,
desktop: desktopView,
appBarHeight: appBarHeight,
navigationIcon: navigationIcon,
navigationIconSplashRadius: navigationIconSplashRadius,
appBarActions: appBarActions,
);
default:
return const SizedBox();
}
}