Fix background svc; Add end time logging to trips

This commit is contained in:
zontreck 2025-05-20 09:21:13 -07:00
parent 1e01384d9b
commit 35863780f6
6 changed files with 99 additions and 15 deletions

View file

@ -151,9 +151,17 @@ class _HomePageState extends State<HomePage> {
Center(
child: ElevatedButton(
onPressed: () async {
setState(() {
SessionData.Login();
});
var result = await SessionData.Login();
if (!result) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(
"Fatal Error: Could not establish the background service for keeping the app alive.",
),
),
);
}
setState(() {});
},
child: Text("ENGAGE"),
),