Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pop to map on added operation #14

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/radio_qth_map/devtools_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extensions:
3 changes: 2 additions & 1 deletion app/radio_qth_map/lib/screen/add_operation_screen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:go_router/go_router.dart';
import 'package:provider/provider.dart';
import 'package:radio_qth_map/data/amateur_radio_band.dart';
import 'package:radio_qth_map/data/amateur_radio_mode.dart';
Expand Down Expand Up @@ -35,7 +36,7 @@ class _AddOperationScreenState extends State<AddOperationScreen> {
final repository = context.read<FirestoreRepository>();
await repository.storeOperations(_logList);
if (context.mounted) {
Navigator.of(context).pop();
context.pop();
}
},
label: Text(AppLocalizations.of(context)!.publish_log),
Expand Down
2 changes: 1 addition & 1 deletion app/radio_qth_map/lib/screen/map_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class MapScreenState extends State<MapScreen> {
),
floatingActionButton: FloatingActionButton.extended(
onPressed: () {
context.go('/qso/add');
context.push('/qso/add');
},
label: Text(AppLocalizations.of(context)!.add_qso),
icon: const Icon(Icons.add),
Expand Down