All pages
Powered by GitBook
1 of 1

Loading...

Base Widget

Do not use nonRotatedChildren to enforce a non-rotatable map. Instead, use interactiveFlags inside MapOptions.

Placement Recommendations

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 height or width property. Instead, use a SizedBox or Column/Row & Expanded.

FlutterMap(
    mapController: _mapController,
    options: MapOptions(),
    children: [],
    nonRotatedChildren: [],
);

options (MapOptions)

Required

Configure options that don't directly affect the appearance of the map, such as starting location and maximum zoom limit.

mapController

Optional

Attach a controller object to control the map programatically, including panning and zooming.

children

Required

Takes a List of Widgets (usually a dedicated 'layer') to display on the map, such as tile layers or polygon layers,

nonRotatedChildren

Optional

Similar to children, but these don't rotate or move with the other layers.

https://pub.dev/packages/backdrop
https://pub.dev/packages/sliding_up_panel
https://pub.dev/packages/material_floating_search_bar