flutter_osm_plugin 0.37.2 copy "flutter_osm_plugin: ^0.37.2" to clipboard
flutter_osm_plugin: ^0.37.2 copied to clipboard

outdated

OpenStreetMap Plugin Native for flutter apps (Andoird/iOS supported,web is under-dev)

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:flutter_osm_plugin_example/src/search_example.dart';

//import 'src/adv_home/home_example.dart';
import 'src/home/home_example.dart';

void main() async {
  await dotenv.load(fileName: ".env");
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      initialRoute: "/home",
      routes: {
        "/home": (ctx) => MainExample(),
        //"/adv-home": (ctx) => AdvandedMainExample(),
        // "/nav": (ctx) => MyHomeNavigationPage(
        //       map: Container(),
        //     ),
        "/second": (ctx) => Scaffold(
              body: Center(
                child: ElevatedButton(
                  onPressed: () {
                    Navigator.popAndPushNamed(ctx, "/home");
                  },
                  child: Text("another page"),
                ),
              ),
            ),
        "/picker-result": (ctx) => LocationAppExample(),
        "/search": (ctx) => SearchPage(),
      },
    );
  }
}
457
likes
0
points
7.79k
downloads

Publisher

unverified uploader

Weekly Downloads

OpenStreetMap Plugin Native for flutter apps (Andoird/iOS supported,web is under-dev)

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter, flutter_osm_interface, flutter_plugin_android_lifecycle, permission_handler, stream_transform, url_launcher, uuid

More

Packages that depend on flutter_osm_plugin