Navigációs képernyőn útvonal megjelenítése supabase táblából és navigációs képernyővel történő indítás beállítások alapján
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:intl/intl.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:permission_handler/permission_handler.dart';
|
||||
import 'package:terepi_seged/routes/app_pages.dart';
|
||||
import 'package:terepi_seged/services/nav_autostart_service.dart';
|
||||
|
||||
class StartPageController extends GetxController {
|
||||
late PermissionStatus bluetoothStatus;
|
||||
@@ -97,8 +98,17 @@ class StartPageController extends GetxController {
|
||||
}
|
||||
|
||||
void _departStartPage() async {
|
||||
final autoStartNav = NavAutoStartService.shouldStartNavigation();
|
||||
|
||||
await Future.delayed(const Duration(seconds: 5));
|
||||
final startNav = await autoStartNav;
|
||||
log('🚀 NavAutoStart döntés: startNav=$startNav');
|
||||
//Get.offAllNamed(Routes.HOME);
|
||||
Get.offAllNamed(Routes.SHELL);
|
||||
|
||||
if (startNav) {
|
||||
await Future.delayed(const Duration(milliseconds: 150));
|
||||
Get.toNamed(Routes.VIBRONAV);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user