Close app after quick action
This commit is contained in:
parent
81e04cc46a
commit
577728ef28
1 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import 'dart:developer' as developer;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:quick_actions/quick_actions.dart';
|
||||
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg;
|
||||
|
||||
|
|
@ -34,6 +35,9 @@ class _QuickActionsInitializerState extends State<QuickActionsInitializer> {
|
|||
developer.log('Failed to send alert', error: error);
|
||||
}
|
||||
}
|
||||
if (mounted) {
|
||||
SystemNavigator.pop();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue