Open robertevans1 opened 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:
But not here:
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:
But not here: