flutter_map_line_editor 4.0.1 copy "flutter_map_line_editor: ^4.0.1" to clipboard
flutter_map_line_editor: ^4.0.1 copied to clipboard

Line editor class for flutter_map

example/lib/main.dart

import 'package:example/polygon_page.dart';
import 'package:example/polyline_page.dart';
import 'package:flutter/material.dart';

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

class App extends StatefulWidget {
  const App({Key? key}) : super(key: key);

  @override
  State<App> createState() => _AppState();
}

class _AppState extends State<App> {
  int _selectedIndex = 0;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: IndexedStack(
          index: _selectedIndex,
          children: const [
            PolylinePage(),
            PolygonPage(),
          ],
        ),
        bottomNavigationBar: BottomNavigationBar(
          currentIndex: _selectedIndex,
          onTap: (index) => setState(() {
            _selectedIndex = index;
          }),
          items: const [
            BottomNavigationBarItem(
              icon: Icon(Icons.linear_scale_rounded),
              label: 'Polyline',
            ),
            BottomNavigationBarItem(
              icon: Icon(Icons.dashboard_outlined),
              label: 'Polygon',
            )
          ],
        ),
      ),
    );
  }
}
19
likes
0
pub points
89%
popularity

Publisher

unverified uploader

Line editor class for flutter_map

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_map, latlong2

More

Packages that depend on flutter_map_line_editor