exit app on Android to apply patch

This commit is contained in:
Jonas Bark
2025-11-02 17:48:34 +01:00
parent 2b25ba942c
commit d95d0cf8cf

View File

@@ -160,9 +160,9 @@ class _AppTitleState extends State<AppTitle> {
content: Text('Force-close the app to use the new version'),
duration: Duration(seconds: 10),
action: SnackBarAction(
label: 'Attempt Restart',
label: 'Restart',
onPressed: () {
if (Platform.isIOS || Platform.isAndroid) {
if (Platform.isIOS) {
connection.reset();
Restart.restartApp(delayBeforeRestart: 1000);
} else {