google_location_autocomplete_textfield_flutter 0.2.0 google_location_autocomplete_textfield_flutter: ^0.2.0 copied to clipboard
Custom Google places autocomplete widget for Android and iOS both.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add google_location_autocomplete_textfield_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
google_location_autocomplete_textfield_flutter: ^0.2.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:google_location_autocomplete_textfield_flutter/DioErrorHandler.dart';
import 'package:google_location_autocomplete_textfield_flutter/app_images.dart';
import 'package:google_location_autocomplete_textfield_flutter/error_response.dart';
import 'package:google_location_autocomplete_textfield_flutter/google_location_autocomplete_textfield.dart';
import 'package:google_location_autocomplete_textfield_flutter/model/place_details.dart';
import 'package:google_location_autocomplete_textfield_flutter/model/place_type.dart';
import 'package:google_location_autocomplete_textfield_flutter/model/prediction.dart';