A drop-in address form with autocomplete and validation.
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-02-17.at.20.33.01.mp4
- Address autocomplete
- Returns a formatted address as well as individual address components and coordinates
Add address_form
as a dependency in your pubspec.yaml file
flutter pub add address_form
Import PhotoX:
import 'package:address_form/address_form.dart';
final mainKey = GlobalKey<AddressFormState>();
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.all(20),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
AddressForm(
apiKey: "",
mainKey: mainKey,
key: mainKey,
)
],
),
);
}