app method
dynamic
app({})
Implementation
app(
{required String initialRoute,
required List<GetPage> pages,
SmartManagement managementFactory = SmartManagement.keepFactory}) {
final themeService = Get.find<ThemeService>();
return Obx(() => GetMaterialApp(
debugShowCheckedModeBanner: false,
title: title,
theme: themeService.lightTheme(),
darkTheme: themeService.darkTheme(),
themeMode: themeService.themeMode(),
smartManagement: managementFactory,
initialRoute: initialRoute,
getPages: pages,
builder: (context, child) =>
ResponsiveBreakpoints.builder(child: child!, breakpoints: [
const Breakpoint(start: 0, end: 450, name: MOBILE),
const Breakpoint(start: 451, end: 800, name: TABLET),
const Breakpoint(start: 801, end: 1920, name: DESKTOP),
const Breakpoint(start: 1921, end: double.infinity, name: '4K')
]),
scrollBehavior: WebDragScrollBehavior(),
));
}