MapsIndoorsWidget constructor

MapsIndoorsWidget({
  1. MPMapLabelFont? mapLabelFont,
  2. int? textSize,
  3. bool? showFloorSelector,
  4. bool? showInfoWindowOnClick,
  5. bool? showUserPosition,
  6. bool? enabletileFadeIn,
  7. MPSelectionMode? buildingSelectionMode,
  8. MPSelectionMode? floorSelectionMode,
  9. num? mapsIndoorsTransitionLevel,
  10. MPFloorSelector? floorSelector,
  11. Alignment? floorSelectorAlignment,
  12. OnMapReadyListener? readyListener,
  13. 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.useDefaultMapsIndoorsStyle = true,
}) : super(key: const GlobalObjectKey(MapsIndoorsWidget)) {
  if (readyListener != null) {
    MapcontrolPlatform.instance.setOnMapControlReadyListener(readyListener!);
  }
}