Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tuoku/address_field

📍A drop-in address form with autocomplete and validation.
https://github.com/tuoku/address_field

address address-forms dart flutter flutter-package places-api places-autocomplete widget

Last synced: about 1 month ago
JSON representation

📍A drop-in address form with autocomplete and validation.

Awesome Lists containing this project

README

        

# AddressForm
A drop-in address form with autocomplete and validation.

https://user-images.githubusercontent.com/70937274/219762068-59e82d12-dba0-49a8-bc21-e89e1f8f23aa.mp4

## Features

- Address autocomplete
- Returns a formatted address as well as individual address components and coordinates

## Getting started

Add `address_form` as a dependency in your pubspec.yaml file

```
flutter pub add address_form
```

Import PhotoX:
```dart
import 'package:address_form/address_form.dart';
```

## Usage

```dart
final mainKey = GlobalKey();

@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.all(20),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
AddressForm(
apiKey: "",
mainKey: mainKey,
key: mainKey,
)
],
),
);
}
```