update permission
This commit is contained in:
@ -70,7 +70,7 @@ class DestinationController extends GetxController {
|
|||||||
int chekcs = 0;
|
int chekcs = 0;
|
||||||
var rogaining_counted = false.obs;
|
var rogaining_counted = false.obs;
|
||||||
|
|
||||||
String getFormatedTime(DateTime datetime){
|
String getFormatedTime(DateTime datetime){
|
||||||
return DateFormat('yyyy-MM-dd HH:mm:ss').format(datetime);
|
return DateFormat('yyyy-MM-dd HH:mm:ss').format(datetime);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -535,7 +535,7 @@ class DestinationController extends GetxController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void checkPermission() async {
|
void checkPermission() async {
|
||||||
LocationPermission permission = await Geolocator.checkPermission();
|
LocationPermission permission = await Geolocator.checkPermission();
|
||||||
if (permission != LocationPermission.whileInUse ||
|
if (permission != LocationPermission.whileInUse ||
|
||||||
permission != LocationPermission.always) {
|
permission != LocationPermission.always) {
|
||||||
locationPermission.clear();
|
locationPermission.clear();
|
||||||
|
|||||||
@ -31,7 +31,8 @@ class _PermissionHandlerScreenState extends State<PermissionHandlerScreen> {
|
|||||||
TextButton(
|
TextButton(
|
||||||
child: const Text('わかった'),
|
child: const Text('わかった'),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
//Navigator.of(context).pop();
|
||||||
|
Get.toNamed(AppPages.TRAVEL);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -105,6 +106,11 @@ class _PermissionHandlerScreenState extends State<PermissionHandlerScreen> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container();
|
return Container(
|
||||||
|
color: Colors.white,
|
||||||
|
child: Center(
|
||||||
|
child: Text(""),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user