MapsIndoorsWidget constructor

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