flutter_map_tile_caching 4.0.0-dev.9 copy "flutter_map_tile_caching: ^4.0.0-dev.9" to clipboard
flutter_map_tile_caching: ^4.0.0-dev.9 copied to clipboard

outdated

Plugin for 'flutter_map' providing advanced caching functionality, with ability to download map regions for offline use. Also includes useful prebuilt widgets.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fmtc_example/state/bulk_download_provider.dart';
import 'package:provider/provider.dart';

import 'pages/bulk_downloader/bulk_downloader.dart';
import 'pages/home/home.dart';
import 'pages/store_editor/store_editor.dart';
import 'pages/store_manager/store_manager.dart';

import 'state/general_provider.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider<GeneralProvider>(
      create: (context) => GeneralProvider(),
      child: MaterialApp(
        title: 'FMTC Example',
        theme: ThemeData(
          primarySwatch: Colors.orange,
        ),
        debugShowCheckedModeBanner: false,
        initialRoute: '/',
        routes: {
          '/': (context) => const HomePage(),
          '/storeManager': (context) => const StoreManager(),
          '/storeEditor': (context) => const StoreEditor(),
          '/bulkDownloader': (context) =>
              ChangeNotifierProvider<BulkDownloadProvider>(
                create: (context) => BulkDownloadProvider(),
                child: const BulkDownloader(),
              ),
        },
      ),
    );
  }
}
115
likes
0
pub points
95%
popularity

Publisher

verified publisherjaffaketchup.dev

Plugin for 'flutter_map' providing advanced caching functionality, with ability to download map regions for offline use. Also includes useful prebuilt widgets.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

background_fetch, battery_info, bezier, collection, connectivity_plus, flutter, flutter_local_notifications, flutter_map, http, latlong2, meta, path, path_provider, permission_handler, queue, shared_preferences, stream_transform, vector_math

More

Packages that depend on flutter_map_tile_caching