location_picker_plus 1.0.0
location_picker_plus: ^1.0.0 copied to clipboard
A highly customizable Flutter plugin for selecting country, state, and city with autocomplete and dropdown modes.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add location_picker_plus
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
location_picker_plus: ^1.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:location_picker_plus/location_picker.dart';
import 'package:location_picker_plus/location_picker_method_channel.dart';
import 'package:location_picker_plus/location_picker_platform_interface.dart';
import 'package:location_picker_plus/location_picker_web.dart';
import 'package:location_picker_plus/models/city_model.dart';
import 'package:location_picker_plus/models/country_model.dart';
import 'package:location_picker_plus/models/state_model.dart';
import 'package:location_picker_plus/services/location_service.dart';
import 'package:location_picker_plus/themes/location_picker_theme.dart';
import 'package:location_picker_plus/widgets/autocomplete_dropdown.dart';
import 'package:location_picker_plus/widgets/location_picker_widget.dart';