Fix background service, add support for NBT instead of Json
This commit is contained in:
parent
a686412ec7
commit
4a8d515f4d
6 changed files with 289 additions and 24 deletions
|
@ -5,16 +5,13 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_map_tile_caching/flutter_map_tile_caching.dart';
|
||||
import 'package:timetrack/consts.dart';
|
||||
import 'package:timetrack/data.dart';
|
||||
import 'package:timetrack/pages/HomePage.dart';
|
||||
import 'package:timetrack/pages/MainApp.dart';
|
||||
|
||||
@pragma("vm:entry-point")
|
||||
void serviceEntry() {
|
||||
// This is where both the Background service and the Floating app window would enter the app.
|
||||
Timer.periodic(Duration(seconds: 5), (timer) async {
|
||||
// Run the location fetch, add to list, etc, etc.
|
||||
});
|
||||
|
||||
// Run the floater app here.
|
||||
runApp(MaterialApp(debugShowCheckedModeBanner: false, home: OverlayWidget()));
|
||||
}
|
||||
|
||||
Future<void> main() async {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue