hoc081098 / flutter_google_places_hoc081098

Better flutter_google_places, updated by @hoc081098
https://pub.dev/packages/flutter_google_places_hoc081098
Other
19 stars 32 forks source link

Add Background Color Customization to flutter_google_places_hoc081098 #37

Open AizanSagheer opened 1 month ago

AizanSagheer commented 1 month ago

Hello,

I’m using the flutter_google_places_hoc081098 package in my Flutter project. There is no option to customize the background color of the autocomplete dropdown.

Steps to Reproduce:

Use the PlacesAutocomplete.show method to display the autocomplete overlay. Try to change the background color of the autocomplete overlay.

Expected Behavior:

There should be a way to customize the background color of the autocomplete overlay (in addition to customizing the text color), so developers can align the widget's UI with their app's theme.

Current Behavior:

While I can change the text color using ThemeData and TextStyle, there is no clear option to change the background color of the autocomplete dropdown.

Proposed Solution:

It would be helpful to introduce a parameter (e.g., backgroundColor or decoration) that allows developers to set the background color for the autocomplete overlay.

Environment:

flutter_google_places_hoc081098 version: 1.2.0 Flutter version: 3.16.5

Screenshot_20240924_160738_Salama

Thank you!

hoc081098 commented 1 month ago

Thanks. I will take a look at it :pray