Fix background svc; Add end time logging to trips
This commit is contained in:
parent
1e01384d9b
commit
35863780f6
6 changed files with 99 additions and 15 deletions
|
@ -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"),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue