sharemap_maplib_flutter 1.3.1
sharemap_maplib_flutter: ^1.3.1 copied to clipboard
A MapLibre-based map widget for Flutter integrating ShareMap APIs, supporting dynamic POI layer toggling, HMAC-signed requests, and custom style loading.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'demo_config.dart';
import 'map_demo_screen.dart';
void main() {
runApp(const ShareMapDemoApp());
}
/// Entry point của demo mobile: đồng bộ cấu trúc với example_web/lib/main.dart.
class ShareMapDemoApp extends StatelessWidget {
const ShareMapDemoApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'ShareMap MapLibre Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
brightness: Brightness.dark,
primaryColor: DemoColors.primary,
scaffoldBackgroundColor: DemoColors.background,
cardColor: DemoColors.surface,
colorScheme: const ColorScheme.dark(
primary: DemoColors.accent,
secondary: DemoColors.success,
surface: DemoColors.surface,
outline: DemoColors.outline,
error: DemoColors.danger,
),
),
home: const MapDemoScreen(),
);
}
}