mapbox_map_gl 0.0.1 copy "mapbox_map_gl: ^0.0.1" to clipboard
mapbox_map_gl: ^0.0.1 copied to clipboard

outdated

A flutter plugin for mapbox map.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:mapbox_map_gl/mapbox_map_gl.dart';

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

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

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

class _MyAppState extends State<MyApp> {
  final _mapboxMapGlPlugin = MapboxMapGl();

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    // final Map<String, dynamic> creationParams = <String, dynamic>{
    //   'accessToken':
    //   ">pk.eyJ1IjoiaXRoZWFtYyIsImEiOiJjanE3aGV6Mm4yaXN0NDltbDF2Y3J0dHVyIn0.rTic8L-foDQnigcr8-dOEQ",
    // };
    //
    // return _mapboxMapGlPlugin.buildView(
    //   creationParams: creationParams,
    //   onPlatformViewCreated: (id) {
    //     print("[PLATFORM CREATED] -----> $id");
    //   },
    // );
    
    return Center(
      child: Text("Hello"),
    );
  }
}
7
likes
0
pub points
67%
popularity

Publisher

unverified uploader

A flutter plugin for mapbox map.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on mapbox_map_gl