Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Autocompleting, Search Input Field left behind results #154

Open
draxexx opened this issue Nov 10, 2021 · 0 comments
Open

When Autocompleting, Search Input Field left behind results #154

draxexx opened this issue Nov 10, 2021 · 0 comments

Comments

@draxexx
Copy link

draxexx commented Nov 10, 2021

Hi,

I'm using PlacePicker widget, when I'm searching, results stay in front of the Search Input Field.

Screenshot_1636540728

Here is my code:

PlacePicker(
              apiKey: _apiKey,
              initialPosition: LatLng(
                _locationModel.lat,
                _locationModel.lng,
              ),
              hintText: "Adres giriniz",
              searchingText: "Aranıyor...",
              selectInitialPosition: true,
              automaticallyImplyAppBarLeading: false,
              selectedPlaceWidgetBuilder:
                  (_, selectedPlace, state, isSearchBarFocused) {
                return isSearchBarFocused
                    ? Container()
                    : FloatingCard(
                        bottomPosition: 0.0,
                        leftPosition: 0.0,
                        rightPosition: 0.0,
                        borderRadius: BorderRadius.only(
                          topRight: Radius.circular(10),
                          topLeft: Radius.circular(10),
                        ),
                        child: state == SearchingState.Searching
                            ? Center(
                                child: CircularProgressIndicator(),
                              )
                            : Container(
                                padding: const EdgeInsets.all(15),
                                child: Column(
                                  children: [
                                    ContentTextWidget(
                                      text: selectedPlace.formattedAddress,
                                      textAlign: TextAlign.center,
                                    ),
                                    SizedBox(height: 20),
                                    ButtonWidget(
                                      onTap: () =>
                                          _onPlaceSelected(selectedPlace),
                                      text: "Lokasyonu Seç",
                                      bgColor: orangeLight,
                                      textColor: Colors.white,
                                    ),
                                  ],
                                ),
                              ),
                      );
              },
            ),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant