flutter_map_tile_caching 4.0.0-dev.11 copy "flutter_map_tile_caching: ^4.0.0-dev.11" to clipboard
flutter_map_tile_caching: ^4.0.0-dev.11 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:feature_discovery/feature_discovery.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import 'pages/bulk_downloader/bulk_downloader.dart';
import 'pages/download/download.dart';
import 'pages/home/home.dart';
import 'pages/store_editor/store_editor.dart';
import 'pages/store_manager/store_manager.dart';
import 'state/bulk_download_provider.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 FeatureDiscovery(
      child: MultiProvider(
        providers: [
          ChangeNotifierProvider<GeneralProvider>(
            create: (context) => GeneralProvider(),
          ),
          ChangeNotifierProvider<BulkDownloadProvider>(
            create: (context) => BulkDownloadProvider(),
          ),
        ],
        child: MaterialApp(
          title: 'FMTC Example',
          theme: ThemeData(
            primarySwatch: Colors.orange,
            useMaterial3: true,
          ),
          debugShowCheckedModeBanner: false,
          initialRoute: '/',
          routes: {
            '/': (context) => const HomePage(),
            '/storeManager': (context) => const StoreManager(),
            '/storeEditor': (context) => const StoreEditor(),
            '/download': (context) => const DownloadScreen(),
            '/bulkDownloader': (context) => 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, ini, latlong2, meta, path, path_provider, permission_handler, queue, stream_transform, vector_math

More

Packages that depend on flutter_map_tile_caching