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

A Flutter package created by the official google_maps_flutter plugin, which can help you to picked locations within a boundary.

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:bound_location_picker/bound_location_picker.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: BoundLocationPicker(
          initialCameraPosition: const LatLng(24.540725, 89.631088),
          onPickedLocation: (LatLng? location) {
            ///TODO do something using location
          },
          onLocationUpdateListener: (LatLng? location) {
            ///TODO do something with current location
          },
          locationPickerImage: const AssetImage("assets/pin_point.png"),
          circleBoundary: CircleBoundary(radius: 800),
          enablePickedButton: true,
        ),
      ),
    );
  }
}
3
likes
140
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package created by the official google_maps_flutter plugin, which can help you to picked locations within a boundary.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, google_maps_flutter, logger, plugin_platform_interface, web

More

Packages that depend on bound_location_picker