Comment on page
It is recommended to make the map as large as possible, to allow it to display a lot of useful information easily.
As such, we recommend using a depth-based layout (eg. using
Stacks) instead of a flat-based layout (eg. using
Columns). The following 3rd party packages might help with creating a modern design:
If you must restrict the widget's size, you won't find a
widthproperty. Instead, use a
The map widget will expand as much as possible.
To avoid errors about infinite/unspecified dimensions, ensure the map is contained within a constrained widget.
To prevent this, set
true, which will activate an internal
AutomaticKeepAliveClientMixin. This will retain the internal state container in memory, even when it would otherwise be disposed.
Last modified 1mo ago