diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 066e355..c833207 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1,6 +1,9 @@ PODS: - camera_avfoundation (0.0.1): - Flutter + - connectivity_plus (0.0.1): + - Flutter + - ReachabilitySwift - Flutter (1.0.0) - flutter_compass (0.0.1): - Flutter @@ -25,6 +28,7 @@ PODS: - Flutter - permission_handler_apple (9.0.4): - Flutter + - ReachabilitySwift (5.0.0) - sqflite (0.0.2): - Flutter - FMDB (>= 2.7.5) @@ -33,6 +37,7 @@ PODS: DEPENDENCIES: - camera_avfoundation (from `.symlinks/plugins/camera_avfoundation/ios`) + - connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`) - Flutter (from `Flutter`) - flutter_compass (from `.symlinks/plugins/flutter_compass/ios`) - flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`) @@ -48,10 +53,13 @@ SPEC REPOS: trunk: - FMDB - GoogleMaps + - ReachabilitySwift EXTERNAL SOURCES: camera_avfoundation: :path: ".symlinks/plugins/camera_avfoundation/ios" + connectivity_plus: + :path: ".symlinks/plugins/connectivity_plus/ios" Flutter: :path: Flutter flutter_compass: @@ -75,6 +83,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: camera_avfoundation: 07c77549ea54ad95d8581be86617c094a46280d9 + connectivity_plus: 413a8857dd5d9f1c399a39130850d02fe0feaf7e Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 flutter_compass: cbbd285cea1584c7ac9c4e0c3e1f17cbea55e855 flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069 @@ -85,6 +94,7 @@ SPEC CHECKSUMS: image_picker_ios: b786a5dcf033a8336a657191401bfdf12017dabb path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce + ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825 sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904 url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index cbdb3fc..3e33110 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -27,25 +27,25 @@ LSRequiresIPhoneOS NSCameraUsageDescription - Camera access to take photo + 写真撮影のためカメラにアクセスします NSLocationAlwaysAndWhenInUseUsageDescription - This app need location access + このアプリでは、位置情報の収集を行います。 NSLocationAlwaysUsageDescription - This app needs access to location when in the background. + このアプリでは、バックグラウンドで位置情報を収集します。 NSLocationWhenInUseUsageDescription - This app needs access to location when open. + このアプリでは、開始時点で位置情報を収集します。 NSMicrophoneUsageDescription - Post videos to profile + プロフィールに動画を投稿してください。 NSPhotoLibraryUsageDescription - Photo Library Access Warning + 写真ライブラリへのアクセス警告 UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main NSCameraUsageDescription - Need camera to get photo when finish rogaining + ロゲイニングのゴールでは写真撮影が必要です。 NSMicrophoneUsageDescription - Need to store capture sound. + 収録音声の保存が必要です。 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait diff --git a/lib/pages/permission/permission.dart b/lib/pages/permission/permission.dart index c4b2890..b286533 100644 --- a/lib/pages/permission/permission.dart +++ b/lib/pages/permission/permission.dart @@ -12,6 +12,34 @@ class PermissionHandlerScreen extends StatefulWidget { class _PermissionHandlerScreenState extends State { + Future _showMyDialog() async { + return showDialog( + context: context, + barrierDismissible: false, // user must tap button! + builder: (BuildContext context) { + return AlertDialog( + title: const Text('ロケーション許可'), + content: SingleChildScrollView( + child: ListBody( + children: const [ + Text( 'このアプリでは、位置情報の収集を行います。'), + Text( 'このアプリでは、開始時点で位置情報を収集します。'), + ], + ), + ), + actions: [ + TextButton( + child: const Text('わかった'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + ], + ); + }, + ); + } + @override void initState() { // TODO: implement initState @@ -33,6 +61,9 @@ class _PermissionHandlerScreenState extends State { // MaterialPageRoute(builder: (context) => SplashScreen()), // ); } + else{ + _showMyDialog(); + } } }, ); diff --git a/lib/widgets/destination_widget.dart b/lib/widgets/destination_widget.dart index c10b9a9..59fb33b 100644 --- a/lib/widgets/destination_widget.dart +++ b/lib/widgets/destination_widget.dart @@ -1,4 +1,3 @@ -import 'dart:ffi'; import 'package:flutter/material.dart'; import 'package:geojson/geojson.dart'; import 'package:get/get.dart';