Skip to content
Prev Previous commit
Next Next commit
[google_maps_flutter] Show hint for android only if not latest renderer
  • Loading branch information
jokerttu committed Apr 27, 2023
commit 2cd61ab66dba016b5248d96283bc048f48c7afa6
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ class MapIdBodyState extends State<MapIdBody> {
'Press to use specified map Id',
),
)),
if (Platform.isAndroid)
if (Platform.isAndroid &&
_initializedRenderer != AndroidMapRenderer.latest)
Padding(
padding: const EdgeInsets.all(10.0),
child: Text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,13 @@ class MapIdBodyState extends State<MapIdBody> {
'Press to use specified map Id',
),
)),
Padding(
padding: const EdgeInsets.all(10.0),
child: Text(
'On Android, Cloud-based maps styling only works with "latest" renderer.\n\n'
'Current initialized renderer is "${_getInitializedsRendererType()}".'),
),
if (_initializedRenderer != AndroidMapRenderer.latest)
Padding(
padding: const EdgeInsets.all(10.0),
child: Text(
'On Android, Cloud-based maps styling only works with "latest" renderer.\n\n'
'Current initialized renderer is "${_getInitializedsRendererType()}".'),
),
];

return Column(
Expand Down