Skip to main content

mapzone_speed_alert 2.0.0 copy "mapzone_speed_alert: ^2.0.0" to clipboard
mapzone_speed_alert: ^2.0.0 copied to clipboard

MapZone Speed Alert SDK for Flutter: real-time speed-limit, camera, toll and road-restriction 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 MapZoneSpeedAlertExampleApp());
}

/// 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 MapZoneSpeedAlertExampleApp extends StatelessWidget {
  const MapZoneSpeedAlertExampleApp({super.key});

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

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

MapZone Speed Alert SDK for Flutter: real-time speed-limit, camera, toll and road-restriction alerts with voice, for Android and iOS.

Homepage
Repository (GitHub)
View/report issues

Topics

#speed-alert #navigation #mapzone #geolocation #adas

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on mapzone_speed_alert

Packages that implement mapzone_speed_alert