チームまでは表示できた。表示と更新及びメンバー編集不可。エントリー以降も表示不可。
This commit is contained in:
@ -34,7 +34,7 @@ import 'package:flutter/services.dart';
|
||||
import 'package:permission_handler/permission_handler.dart';
|
||||
|
||||
import 'pages/permission/permission.dart';
|
||||
|
||||
import 'package:rogapp/services/api_service.dart';
|
||||
|
||||
Map<String, dynamic> deviceInfo = {};
|
||||
|
||||
@ -100,6 +100,7 @@ void restoreGame() async {
|
||||
pref.getBool("rogaining_counted") ?? false;
|
||||
DestinationController.ready_for_goal =
|
||||
pref.getBool("ready_for_goal") ?? false;
|
||||
await Get.putAsync(() => ApiService().init());
|
||||
}
|
||||
}
|
||||
|
||||
@ -150,13 +151,39 @@ void main() async {
|
||||
});
|
||||
*/
|
||||
|
||||
try {
|
||||
// ApiServiceを初期化
|
||||
//await Get.putAsync(() => ApiService().init());
|
||||
await initServices();
|
||||
|
||||
|
||||
runApp(const ProviderScope(child: MyApp()));
|
||||
//runApp(HomePage()); // MyApp()からHomePage()に変更
|
||||
//runApp(const MyApp());
|
||||
runApp(const ProviderScope(child: MyApp()));
|
||||
//runApp(HomePage()); // MyApp()からHomePage()に変更
|
||||
//runApp(const MyApp());
|
||||
}catch(e, stackTrace){
|
||||
print('Error during initialization: $e');
|
||||
print('Stack trace: $stackTrace');
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> initServices() async {
|
||||
print('Starting services ...');
|
||||
try {
|
||||
await Get.putAsync(() => ApiService().init());
|
||||
print('All services started...');
|
||||
}catch(e){
|
||||
print('Error initializing ApiService: $e');
|
||||
}
|
||||
|
||||
try {
|
||||
Get.put(SettingsController());
|
||||
print('SettingsController initialized successfully');
|
||||
} catch (e) {
|
||||
print('Error initializing SettingsController: $e');
|
||||
}
|
||||
|
||||
print('All services started...');
|
||||
|
||||
}
|
||||
|
||||
Future<void> requestLocationPermission() async {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user