MapsIndoorsWidget constructor
MapsIndoorsWidget({
- MPMapLabelFont? mapLabelFont,
- int? textSize,
- bool? showFloorSelector,
- bool? showInfoWindowOnClick,
- bool? showUserPosition,
- bool? enabletileFadeIn,
- MPSelectionMode? buildingSelectionMode,
- MPSelectionMode? floorSelectionMode,
- num? mapsIndoorsTransitionLevel,
- MPFloorSelector? floorSelector,
- Alignment? floorSelectorAlignment,
- OnMapReadyListener? readyListener,
- MPCameraPosition? initialCameraPosition,
- bool useDefaultMapsIndoorsStyle = true,
Build the widget, MapsIndoors currently supports the following platforms:
- Android
- iOS
Has optional MPFloorSelector widget. Package includes a MPDefaultFloorSelector.
floorSelectorAlignment
defaults to Alignment.centerRight if none is provided.
Implementation
MapsIndoorsWidget({
this.mapLabelFont,
this.textSize,
this.showFloorSelector,
this.showInfoWindowOnClick,
this.showUserPosition,
this.enabletileFadeIn,
this.buildingSelectionMode,
this.floorSelectionMode,
this.mapsIndoorsTransitionLevel,
this.floorSelector,
this.floorSelectorAlignment,
this.readyListener,
this.initialCameraPosition,
this.useDefaultMapsIndoorsStyle = true,
}) : super(key: const GlobalObjectKey(MapsIndoorsWidget)) {
if (readyListener != null) {
MapcontrolPlatform.instance.setOnMapControlReadyListener(readyListener!);
}
}