Close app after quick action

This commit is contained in:
Anton Tananaev 2025-06-13 07:02:13 -07:00
parent 81e04cc46a
commit 577728ef28

View file

@ -1,6 +1,7 @@
import 'dart:developer' as developer; import 'dart:developer' as developer;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:quick_actions/quick_actions.dart'; import 'package:quick_actions/quick_actions.dart';
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg; 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); developer.log('Failed to send alert', error: error);
} }
} }
if (mounted) {
SystemNavigator.pop();
}
}); });
} }