mapbox_place_search 1.0.2 copy "mapbox_place_search: ^1.0.2" to clipboard
mapbox_place_search: ^1.0.2 copied to clipboard

MapBox Places auto-complete search box.

mapbox_place_search #

  • Flutter Package to integrate mapbox search api with a search box UI.

Features #

  • Supports multiple countries just change the abbreviations of the countries like US, FR etc.

Getting started #

Install the package #

flutter pub add mapbox_place_search
mapbox_place_search: latest

Usage #

import 'package:mapbox_place_search/mapbox_place_search.dart';
class _SearchScreenState extends State<SearchScreen> {
  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
        body: Center(
          child: MapBoxPlaceSearchWidget(
            country: 'FR',
            popOnSelect: false,
            apiKey: "MAPBOX_PUBLIC_KEY",
            searchHint: 'Enter your Destination',
            onSelected: (place) {
              print(place.center);
            },
            context: context,
          ),
        ),
      ),
    );
  }
}

Additional information #

github: https://github.com/AneeqMalik

3
likes
120
points
37
downloads

Publisher

unverified uploader

Weekly Downloads

MapBox Places auto-complete search box.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, mapbox_search

More

Packages that depend on mapbox_place_search