- [Docs]: Add documentation for undocumented class members (thank you @Pietrucci-Blacher!)
- [Fix]: Handle unhandled exception when widget is disposed (thanks for finding this bug @jsanders5!)
- [Fix]: Improve the error handling in the API class (thank you @Alienjob!)
- [Feat]: Add language code functionality to receive API answers in the specified language (thank you @raulgarciaalcaraz-zero!)
All the changes marked with (*) are the work of @lucaantonelli, thank you a lot!
- [Breaking]: Implement new Places API (*)
- [Add]: Add a minimum input length (*)
- [Add]: Add the possibility to use a session token (thanks for the first implementation @lucaantonelli!)
- [Add]: Add the
maxHeight
parameter to manipulate the overlay height (special thanks to @Muhammed-Ayad!) - [Chore]: Remove unused
toJson
methods from several classes - [Chore]: Added doc comments to
GooglePlacesAutoCompleteTextFormField
- [Breaking]: Rename
itmClick
toonSuggestionClicked
- [Breaking]: Rename
isLatLngRequired
tofetchCoordinates
- [Breaking]: Rename
overlayContainer
tooverlayContainerBuilder
- [Breaking]: Remove unnecessary typedefs:
GetPlaceDetailswWithLatLng
,ItemClick
andOverlayContainer
- [Fix]: Make the
TextEditingController
nullable and ensure theinitialValue
property can be used (thanks for finding this bug @trusilosv!) - [Add]: Add the
fetchSuggestionsForInitialValue
parameter to instantly fetch suggestions when an initial value is given. - [Refactor]: Extract the Google Places API logic into an own class
- [Fix]: Make sure the overlay adapts to multiline input (thanks for finding this bug @iamdiogo!)
- [Breaking]: Rename
getPlaceDetailWithLatLng
toonPlaceDetailsWithCoordinatesReceived
- [Fix]: Removed the duplicate declaration of the fields
inputDecoration
anddecoration
, which were misleading. Now only the fielddecoration
is available to assign aInputDecoration
to theGooglePlacesAutoCompleteTextFormField
, following theTextFormField
convention.
- [Add]: New argument
validator
now you can validate the field if it's used inside the Form widget. More information is available in the example. - [Update]: Example updated.
- [Fix]: Fixed a bug where the Google API Url would not be correctly built if no proxy URL was provided.
- [Add]: Added compatibility for Flutter Web 🌐. Just pass the
GooglePlacesAutoCompleteTextFormField
a proxy URL and you're good to go!
- [Fix]: Fixed a bug on MacOS where clicking on the predictions would not be registered.
- [Add]: New argument
overlayContainer
so that you can now fully customize the appearance of the predictions as well! - [Fix]: Fixed a bug where the overlay with the predictions would not be closed as soon as the focus is lost.
- Initial release of a fully customizable
TextFormField
that sends your input to the Google Places API and provides you with suggestions for autocompletion.