flutter_background_geolocation 0.1.2 flutter_background_geolocation: ^0.1.2 copied to clipboard
The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'src/app.dart';
import 'src/advanced/app.dart';
import 'src/hello_world/app.dart';
void main() async {
final SharedPreferences prefs = await SharedPreferences.getInstance();
String appName = prefs.getString("app");
Widget app;
switch(appName) {
case AdvancedApp.NAME:
app = new AdvancedApp();
break;
case HelloWorldApp.NAME:
app = new HelloWorldApp();
break;
default:
app = HomeApp();
break;
}
runApp(app);
}