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

Flutter plugin for the Speed Alert SDK by Vietmap: real-time speed-limit, camera & toll-gate alerts with voice, for Android and iOS.

example/lib/main.dart

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

import 'screens/map_screen.dart';
import 'state/alert_controller.dart';
import 'state/permission_controller.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const VietmapAlertExampleApp());
}

/// App root. State is split into two focused [ChangeNotifier]s provided at the
/// top of the tree:
///   - [AlertController]      → the speed-alert engine, streams and voice.
///   - [PermissionController] → runtime location / notification permissions.
class VietmapAlertExampleApp extends StatelessWidget {
  const VietmapAlertExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        ChangeNotifierProvider(create: (_) => AlertController()..init()),
        ChangeNotifierProvider(create: (_) => PermissionController()..refresh()),
      ],
      child: MaterialApp(
        title: 'Vietmap Speed Alert',
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
          useMaterial3: true,
        ),
        home: const MapScreen(),
      ),
    );
  }
}
0
likes
150
points
10
downloads

Documentation

API reference

Publisher

verified publishertienich.id.vn

Weekly Downloads

Flutter plugin for the Speed Alert SDK by Vietmap: real-time speed-limit, camera & toll-gate alerts with voice, for Android and iOS.

Repository (GitHub)
View/report issues

Topics

#speed-alert #navigation #vietmap #geolocation #adas

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on mapzone_flutter_alert_plugin

Packages that implement mapzone_flutter_alert_plugin