geo_position_background 0.0.1 copy "geo_position_background: ^0.0.1" to clipboard
geo_position_background: ^0.0.1 copied to clipboard

PlatformAndroid

Flutter package to track background location

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:geo_position_background_example/presentation/pages/home.dart';
import 'package:geo_position_background_example/presentation/pages/setting.dart';
import 'package:go_router/go_router.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      debugShowCheckedModeBanner: false,
      theme: ThemeData.light(useMaterial3: true),
      darkTheme: ThemeData.dark(useMaterial3: true),
      color: Colors.teal,
      // : ColorScheme.fromSeed(seedColor: Colors.teal),
      routerConfig: GoRouter(routes: [
        GoRoute(path: "/", builder: (context, state) => const HomPage()),
        GoRoute(
            path: "/setting", builder: (context, state) => const SettingPage())
      ]),
    );
  }
}
0
likes
120
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package to track background location

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, permission_handler, plugin_platform_interface

More

Packages that depend on geo_position_background