From 41409208bd2206a2d187f05e379ff6f66feee2bc Mon Sep 17 00:00:00 2001 From: Abdullah Naseer <66040295+Abdullah-Zakhoi@users.noreply.github.com> Date: Sun, 11 Oct 2020 12:32:39 +0300 Subject: [PATCH] Update google_map_place_picker.dart fixed this issue https://github.com/fysoul17/google_maps_place_picker/issues/68 --- lib/src/google_map_place_picker.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/google_map_place_picker.dart b/lib/src/google_map_place_picker.dart index ca828606..5bdd4d48 100644 --- a/lib/src/google_map_place_picker.dart +++ b/lib/src/google_map_place_picker.dart @@ -300,6 +300,10 @@ class GoogleMapPlacePicker extends StatelessWidget { } Widget _defaultPlaceWidgetBuilder(BuildContext context, PickResult data, SearchingState state) { + bool changeStateManually = false; + if (data != null){changeStateManually = true;} + else{changeStateManually = false;} + return FloatingCard( bottomPosition: MediaQuery.of(context).size.height * 0.05, leftPosition: MediaQuery.of(context).size.width * 0.025, @@ -308,7 +312,7 @@ class GoogleMapPlacePicker extends StatelessWidget { borderRadius: BorderRadius.circular(12.0), elevation: 4.0, color: Theme.of(context).cardColor, - child: state == SearchingState.Searching ? _buildLoadingIndicator() : _buildSelectionDetails(context, data), + child: state == SearchingState.Searching && changeStateManually == false ? _buildLoadingIndicator() : _buildSelectionDetails(context, data), ); }