Skip to content

Commit d101323

Browse files
committed
Bumped package versions, silenced linter complaint
1 parent c7f0dd1 commit d101323

File tree

2 files changed

+30
-28
lines changed

2 files changed

+30
-28
lines changed

lib/session.dart

+24-22
Original file line numberDiff line numberDiff line change
@@ -445,28 +445,30 @@ class SessionRouteState extends State<SessionRoute> with SingleTickerProviderSta
445445
await HotwordDetector().stop();
446446
}
447447
await WakelockPlus.disable();
448-
// ignore: use_build_context_synchronously
449-
Navigator.push(
450-
context,
451-
CupertinoPageRoute(
452-
builder: (context) => const MenuRoute(),
453-
),
454-
).then((val) async {
455-
inMenu = false;
456-
// Make sure we rebuild main route when menu route is popped in navigation
457-
// stack. This ensures that the state of the hotword activation button is
458-
// updated to reflect potential changes in Settings, etc.
459-
if (text == '') {
460-
msg(introMsg());
461-
}
462-
setState(() {});
463-
// Re-enable wakelock when returning to main route
464-
await WakelockPlus.enable();
465-
// Resume hotword detection (if enabled)
466-
if (Prefs().boolForKey('hotword_activation') == true) {
467-
await HotwordDetector().start(hotwordHandler);
468-
}
469-
});
448+
449+
if (context.mounted) {
450+
Navigator.push(
451+
context,
452+
CupertinoPageRoute(
453+
builder: (context) => const MenuRoute(),
454+
),
455+
).then((val) async {
456+
inMenu = false;
457+
// Make sure we rebuild main route when menu route is popped in navigation
458+
// stack. This ensures that the state of the hotword activation button is
459+
// updated to reflect potential changes in Settings, etc.
460+
if (text == '') {
461+
msg(introMsg());
462+
}
463+
setState(() {});
464+
// Re-enable wakelock when returning to main route
465+
await WakelockPlus.enable();
466+
// Resume hotword detection (if enabled)
467+
if (Prefs().boolForKey('hotword_activation') == true) {
468+
await HotwordDetector().start(hotwordHandler);
469+
}
470+
});
471+
}
470472
}
471473

472474
// Handle tap on microphone icon to toggle hotword activation

pubspec.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ dependencies:
1515
# Third-party
1616
http: '>=1.2.1'
1717
shared_preferences: '^2.2.3'
18-
geolocator: '^11.0.0'
19-
package_info_plus: '4.0.2'
20-
device_info_plus: '^9.1.2'
18+
geolocator: ^12.0.0
19+
package_info_plus: ^8.0.1
20+
device_info_plus: ^10.1.1
2121
url_launcher: '^6.1.14'
2222
platform_device_id:
2323
git:
@@ -27,12 +27,12 @@ dependencies:
2727
flutter_inappwebview: '^5.7.2+3'
2828
path_provider: '^2.1.2'
2929
wakelock_plus: '>=1.1.1'
30-
permission_handler: '^10.2.0'
31-
flutter_fgbg: '^0.3.0'
30+
permission_handler: ^11.3.1
31+
flutter_fgbg: ^0.4.0
3232
logger: '^2.0.1'
3333
adaptive_theme: '^3.6.0'
3434
open_settings: '^2.0.2'
35-
adaptive_dialog: '^1.9.0+2'
35+
adaptive_dialog: ^2.1.0
3636
# fluttertoast: '^8.1.2'
3737
# flutter_spinkit: ^5.1.0
3838
# multicast_dns: '^0.3.2'

0 commit comments

Comments
 (0)