graphhooper_route_navigation 0.0.3 copy "graphhooper_route_navigation: ^0.0.3" to clipboard
graphhooper_route_navigation: ^0.0.3 copied to clipboard

A new plugin for graphhooper route navigation. Use Mapbox Map as a base layer & map styles and Graphhooper Map route navigation data for polyline, duration and time.

example/lib/main.dart

import 'dart:io';

import 'package:flutter/material.dart';
import 'dart:async';
import 'package:get/get.dart';


import 'package:flutter/services.dart';

import 'bindings/controller_binding.dart';
import 'bindings/http_overrides.dart';
import 'map_dashboard_screen.dart';



void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  HttpOverrides.global = MyHttpOverrides();
  SystemChrome.setPreferredOrientations([
    DeviceOrientation.portraitUp,
  ]);
  runApp(const MyApp());
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }
// loadEnvFile() async {
//   await DotEnv().load('.env');
//
// }
  // Platform messages are asynchronous, so we initialize in an async method.


  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: 'Ghaphhooper Map Route Navigation',
      debugShowCheckedModeBanner: false,
      debugShowMaterialGrid: false,
      theme: ThemeData(brightness: Brightness.light),
      darkTheme: ThemeData(brightness: Brightness.dark),
      themeMode: ThemeMode.dark,
      home:  MapDashboardScreen(),
      initialBinding: ControllerBinding(),
    );
  }
}
9
likes
70
pub points
31%
popularity

Publisher

unverified uploader

A new plugin for graphhooper route navigation. Use Mapbox Map as a base layer & map styles and Graphhooper Map route navigation data for polyline, duration and time.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

cached_network_image, expandable_bottom_sheet, flutter, flutter_plugin_android_lifecycle, flutter_web_plugins, get, http, mapbox_gl, plugin_platform_interface, text_to_speech, vector_math

More

Packages that depend on graphhooper_route_navigation