place_picker_v2 0.0.2 place_picker_v2: ^0.0.2 copied to clipboard
Place picker fully written in dart for Flutter. Comes with autocomplete suggestions and nearby locations list. Localization too.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add place_picker_v2
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
place_picker_v2: ^0.0.2
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:place_picker_v2/entities/address_component.dart';
import 'package:place_picker_v2/entities/auto_complete_item.dart';
import 'package:place_picker_v2/entities/entities.dart';
import 'package:place_picker_v2/entities/localization_item.dart';
import 'package:place_picker_v2/entities/location_result.dart';
import 'package:place_picker_v2/entities/near_by_place.dart';
import 'package:place_picker_v2/place_picker.dart';
import 'package:place_picker_v2/uuid.dart';
import 'package:place_picker_v2/widgets/near_by_place_item.dart';
import 'package:place_picker_v2/widgets/place_picker.dart';
import 'package:place_picker_v2/widgets/rich_suggestion.dart';
import 'package:place_picker_v2/widgets/search_input.dart';
import 'package:place_picker_v2/widgets/select_place_action.dart';
import 'package:place_picker_v2/widgets/widgets.dart';