mapbox_map_gl 0.0.1 mapbox_map_gl: ^0.0.1 copied to clipboard
A flutter plugin for mapbox map.
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"),
);
}
}