|
|
|
@ -368,20 +368,19 @@ class _ServicesPageState extends State<ServicesPage> {
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
route: null,
|
|
|
|
route: null,
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
|
|
|
|
|
if (getIt.get<AppState>().isAuthenticated) {
|
|
|
|
getIt.get<NavigationService>().pushPageRoute(AppRoutes.smartWatches);
|
|
|
|
getIt.get<NavigationService>().pushPageRoute(AppRoutes.smartWatches);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
// if (getIt.get<AppState>().isAuthenticated) {
|
|
|
|
Navigator.of(getIt<NavigationService>().navigatorKey.currentContext!).push(
|
|
|
|
// } else {
|
|
|
|
CustomPageRoute(
|
|
|
|
// Navigator.of(getIt<NavigationService>().navigatorKey.currentContext!).push(
|
|
|
|
page: ServiceInfoPage(
|
|
|
|
// CustomPageRoute(
|
|
|
|
serviceName: LocaleKeys.smartWatches.tr(),
|
|
|
|
// page: ServiceInfoPage(
|
|
|
|
serviceHeader: LocaleKeys.smartWatchServiceHeader.tr(),
|
|
|
|
// serviceName: LocaleKeys.smartWatches.tr(),
|
|
|
|
serviceDescription: LocaleKeys.smartWatchServiceDescription.tr(),
|
|
|
|
// serviceHeader: LocaleKeys.smartWatchServiceHeader.tr(),
|
|
|
|
serviceImage: AppAssets.smartWatchService),
|
|
|
|
// serviceDescription: LocaleKeys.smartWatchServiceDescription.tr(),
|
|
|
|
),
|
|
|
|
// serviceImage: AppAssets.smartWatchService),
|
|
|
|
);
|
|
|
|
// ),
|
|
|
|
}
|
|
|
|
// );
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (getIt.get<AppState>().isAuthenticated) {
|
|
|
|
// if (getIt.get<AppState>().isAuthenticated) {
|
|
|
|
// getIt.get<NavigationService>().pushPageRoute(AppRoutes.smartWatches);
|
|
|
|
// getIt.get<NavigationService>().pushPageRoute(AppRoutes.smartWatches);
|
|
|
|
// } else {
|
|
|
|
// } else {
|
|
|
|
|