From 7c261be1ac1f99566c2a735ce33489fb3f74add6 Mon Sep 17 00:00:00 2001 From: numa08 <937552+numa08@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:23:46 +0900 Subject: [PATCH 1/2] vscode setting --- app/radio_qth_map/.fvmrc | 3 ++- app/radio_qth_map/.vscode/settings.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/radio_qth_map/.fvmrc b/app/radio_qth_map/.fvmrc index 090816f..14d37f6 100644 --- a/app/radio_qth_map/.fvmrc +++ b/app/radio_qth_map/.fvmrc @@ -1,3 +1,4 @@ { - "flutter": "3.19.2" + "flutter": "3.19.2", + "flavors": {} } \ No newline at end of file diff --git a/app/radio_qth_map/.vscode/settings.json b/app/radio_qth_map/.vscode/settings.json index a8a43c5..8a15cae 100644 --- a/app/radio_qth_map/.vscode/settings.json +++ b/app/radio_qth_map/.vscode/settings.json @@ -1,3 +1,3 @@ { - "dart.flutterSdkPath": ".fvm/versions/3.16.9" -} + "dart.flutterSdkPath": ".fvm/versions/3.19.2" +} \ No newline at end of file From 647de94b58aa48aeb6aa1c492eb36015f07182df Mon Sep 17 00:00:00 2001 From: numa08 <937552+numa08@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:36:53 +0900 Subject: [PATCH 2/2] hide delet button when not login --- app/radio_qth_map/lib/widget/operation_map.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/radio_qth_map/lib/widget/operation_map.dart b/app/radio_qth_map/lib/widget/operation_map.dart index 583b9c4..2a123e9 100644 --- a/app/radio_qth_map/lib/widget/operation_map.dart +++ b/app/radio_qth_map/lib/widget/operation_map.dart @@ -273,9 +273,9 @@ class OperationMapState extends State final sheetController = showBottomSheet( context: context, builder: (context) { + final currentUser = context.read().auth.currentUser; final ownOperation = - context.read().auth.currentUser?.uid == - operation.ownerId; + currentUser != null && currentUser.uid == operation.ownerId; return SizedBox( height: 200, child: Scaffold(