Skip to content

Commit

Permalink
hide delet button when not login (#49)
Browse files Browse the repository at this point in the history
* vscode setting

* hide delet button when not login
  • Loading branch information
numa08 authored Mar 18, 2024
1 parent 12dbdc9 commit 33282b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/radio_qth_map/.fvmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"flutter": "3.19.2"
"flutter": "3.19.2",
"flavors": {}
}
4 changes: 2 additions & 2 deletions app/radio_qth_map/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"dart.flutterSdkPath": ".fvm/versions/3.16.9"
}
"dart.flutterSdkPath": ".fvm/versions/3.19.2"
}
4 changes: 2 additions & 2 deletions app/radio_qth_map/lib/widget/operation_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ class OperationMapState extends State<OperationMap>
final sheetController = showBottomSheet(
context: context,
builder: (context) {
final currentUser = context.read<AuthStateNotifier>().auth.currentUser;
final ownOperation =
context.read<AuthStateNotifier>().auth.currentUser?.uid ==
operation.ownerId;
currentUser != null && currentUser.uid == operation.ownerId;
return SizedBox(
height: 200,
child: Scaffold(
Expand Down

0 comments on commit 33282b0

Please sign in to comment.