|
|
|
|
@ -126,17 +126,18 @@ class AppRoutes {
|
|
|
|
|
return HealthTrackerDetailPage(
|
|
|
|
|
trackerType: args ?? HealthTrackerTypeEnum.bloodSugar,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
monthlyReports: (context) => ChangeNotifierProvider(
|
|
|
|
|
create: (_) => MonthlyReportsViewModel(
|
|
|
|
|
monthlyReportsRepo: getIt<MonthlyReportsRepo>(),
|
|
|
|
|
errorHandlerService: getIt<ErrorHandlerService>(),
|
|
|
|
|
),
|
|
|
|
|
child: const MonthlyReportsPage(),
|
|
|
|
|
),
|
|
|
|
|
qrParking: (context) => ChangeNotifierProvider<QrParkingViewModel>(
|
|
|
|
|
create: (_) => getIt<QrParkingViewModel>(),
|
|
|
|
|
child: const ParkingPage(),
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
monthlyReports: (context) => ChangeNotifierProvider(
|
|
|
|
|
create: (_) => MonthlyReportsViewModel(
|
|
|
|
|
monthlyReportsRepo: getIt<MonthlyReportsRepo>(),
|
|
|
|
|
errorHandlerService: getIt<ErrorHandlerService>(),
|
|
|
|
|
),
|
|
|
|
|
child: const MonthlyReportsPage(),
|
|
|
|
|
),
|
|
|
|
|
qrParking: (context) => ChangeNotifierProvider<QrParkingViewModel>(
|
|
|
|
|
create: (_) => getIt<QrParkingViewModel>(),
|
|
|
|
|
child: const ParkingPage(),
|
|
|
|
|
),
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|