blackmann / locationpicker

Location picker for Flutter.
Other
169 stars 162 forks source link

Search suggestions does not inherit theme properly #44

Open robertevans1 opened 3 years ago

robertevans1 commented 3 years ago

Wrapping the place_picker in a Theme widget changes most of the styling as desired but does not change the list of suggested places.

Theme( data: ThemeData.light(), child: Builder( builder: (context) => PlacePicker(CONSTANTS.MAPS_API), ), );

The above snippet produces a picker where most styling follows the specified ThemeData.light theme. But the list of suggested results ignores the wrapped theme and instead uses the apps main theme.

Inherits theme here:

light_theme_working

But not here:

light_theme_not_working