Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[multiple_web] Adapt web PlatformView widgets to work slotted. #3964

Merged
merged 8 commits into from
Jun 1, 2021
Prev Previous commit
Next Next commit
[google_maps_flutter_web] Make Map take 100% width/height of the Plat…
…formView.
  • Loading branch information
ditman committed May 27, 2021
commit 97e41efd4e8239e641e2282eab4f06196cdd7a5c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ class GoogleMapController {
// Register the view factory that will hold the `_div` that holds the map in the DOM.
// The `_div` needs to be created outside of the ViewFactory (and cached!) so we can
// use it to create the [gmaps.GMap] in the `init()` method of this class.
_div = DivElement()..id = _getViewType(mapId);
_div = DivElement()
..id = _getViewType(mapId)
..style.width = '100%'
..style.height = '100%';

ui.platformViewRegistry.registerViewFactory(
_getViewType(mapId),
Expand Down