Skip to content

Commit

Permalink
Bumped package versions, silenced linter complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Aug 6, 2024
1 parent c7f0dd1 commit d101323
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
46 changes: 24 additions & 22 deletions lib/session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -445,28 +445,30 @@ class SessionRouteState extends State<SessionRoute> with SingleTickerProviderSta
await HotwordDetector().stop();
}
await WakelockPlus.disable();
// ignore: use_build_context_synchronously
Navigator.push(
context,
CupertinoPageRoute(
builder: (context) => const MenuRoute(),
),
).then((val) async {
inMenu = false;
// Make sure we rebuild main route when menu route is popped in navigation
// stack. This ensures that the state of the hotword activation button is
// updated to reflect potential changes in Settings, etc.
if (text == '') {
msg(introMsg());
}
setState(() {});
// Re-enable wakelock when returning to main route
await WakelockPlus.enable();
// Resume hotword detection (if enabled)
if (Prefs().boolForKey('hotword_activation') == true) {
await HotwordDetector().start(hotwordHandler);
}
});

if (context.mounted) {
Navigator.push(
context,
CupertinoPageRoute(
builder: (context) => const MenuRoute(),
),
).then((val) async {
inMenu = false;
// Make sure we rebuild main route when menu route is popped in navigation
// stack. This ensures that the state of the hotword activation button is
// updated to reflect potential changes in Settings, etc.
if (text == '') {
msg(introMsg());
}
setState(() {});
// Re-enable wakelock when returning to main route
await WakelockPlus.enable();
// Resume hotword detection (if enabled)
if (Prefs().boolForKey('hotword_activation') == true) {
await HotwordDetector().start(hotwordHandler);
}
});
}
}

// Handle tap on microphone icon to toggle hotword activation
Expand Down
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ dependencies:
# Third-party
http: '>=1.2.1'
shared_preferences: '^2.2.3'
geolocator: '^11.0.0'
package_info_plus: '4.0.2'
device_info_plus: '^9.1.2'
geolocator: ^12.0.0
package_info_plus: ^8.0.1
device_info_plus: ^10.1.1
url_launcher: '^6.1.14'
platform_device_id:
git:
Expand All @@ -27,12 +27,12 @@ dependencies:
flutter_inappwebview: '^5.7.2+3'
path_provider: '^2.1.2'
wakelock_plus: '>=1.1.1'
permission_handler: '^10.2.0'
flutter_fgbg: '^0.3.0'
permission_handler: ^11.3.1
flutter_fgbg: ^0.4.0
logger: '^2.0.1'
adaptive_theme: '^3.6.0'
open_settings: '^2.0.2'
adaptive_dialog: '^1.9.0+2'
adaptive_dialog: ^2.1.0
# fluttertoast: '^8.1.2'
# flutter_spinkit: ^5.1.0
# multicast_dns: '^0.3.2'
Expand Down

0 comments on commit d101323

Please sign in to comment.