Destination controller から Location controller へGPS信号シミュレーションを変更
This commit is contained in:
@ -18,7 +18,8 @@ import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:rogapp/services/device_info_service.dart';
|
||||
import 'package:rogapp/services/error_service.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'dart:async';
|
||||
//import 'dart:async';
|
||||
//import 'package:get/get.dart';
|
||||
|
||||
Map<String, dynamic> deviceInfo = {};
|
||||
|
||||
@ -69,9 +70,13 @@ void main() async {
|
||||
|
||||
FlutterError.onError = (FlutterErrorDetails details) {
|
||||
FlutterError.presentError(details);
|
||||
Get.log('Flutter error: ${details.exception}');
|
||||
Get.log('Stack trace: ${details.stack}');
|
||||
ErrorService.reportError(details.exception, details.stack ?? StackTrace.current, deviceInfo);
|
||||
};
|
||||
|
||||
//Get.put(LocationController());
|
||||
|
||||
// startMemoryMonitoring(); // 2024-4-8 Akira: メモリ使用量のチェックを開始 See #2810
|
||||
|
||||
runZonedGuarded(() {
|
||||
@ -185,8 +190,8 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
LocationController locationController = Get.find<LocationController>();
|
||||
|
||||
DestinationController destinationController =
|
||||
Get.find<DestinationController>();
|
||||
//DestinationController destinationController =
|
||||
// Get.find<DestinationController>();
|
||||
switch (state) {
|
||||
case AppLifecycleState.resumed:
|
||||
locationController.resumePositionStream();
|
||||
|
||||
Reference in New Issue
Block a user