flutter_osm_plugin 0.21.0-rc.1 copy "flutter_osm_plugin: ^0.21.0-rc.1" to clipboard
flutter_osm_plugin: ^0.21.0-rc.1 copied to clipboard

outdated

openStreetMap plugin for flutter apps ( iOS available in alpha version,web is under-dev)

example/lib/main.dart

import 'package:flutter/material.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() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      initialRoute: "/home",
      routes: {
        "/home": (ctx) => MainExample(),
        "/adv-home": (ctx) => AdvandedMainExample(),
        "/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 for flutter apps ( iOS available in alpha version,web is under-dev)

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter, flutter_osm_interface, flutter_plugin_android_lifecycle, location, stream_transform, url_launcher

More

Packages that depend on flutter_osm_plugin