fluttercommunity / flutter_google_places

Google Places - Google places autocomplete widgets for flutter. No wrapper, use https://pub.dev/packages/google_maps_webservice. Maintainer: @juliansteenbakker
https://pub.dev/packages/flutter_google_places
Other
303 stars 413 forks source link

Provide themeData and textStyle through optional parameters #184

Closed RafaO closed 2 years ago

RafaO commented 2 years ago

Thank you for this package!

Apps with a light theme can have full white background and in those cases, texts are not visible when performing the search on full-screen mode. I tried wrapping the Scaffold on a Theme widget, but still the search was using the global theme.

This PR provides a theme through an optional parameter in the show function. This would allow developers to override any attribute to the theme.

As a bonus, I noticed that the textStyle attribute was not provided either through the show function. I also added it.

I think these changes should fix the following issues at least:

https://github.com/fluttercommunity/flutter_google_places/issues/89 https://github.com/fluttercommunity/flutter_google_places/issues/76

juliansteenbakker commented 2 years ago

Thanks for your contribution!