Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
MapView
const MapView({
super.key,
required this.provider,
required this.initialCamera,
this.controller,
this.markers = const [],
this.pointsOfInterest = const [],
this.routes = const [],
this.heatmap,
this.clustering,
this.clusterBuilder,
this.onClusterTap,
this.trackedEntities = const [],
this.initialFollowEntityId,
this.onFollowChanged,
this.initialSelectedPoiId,
this.onPoiSelected,
this.popupBuilder,
this.closePopupOnMapTap = true,
this.overlays = const [],
this.borderRadius = 24,
this.showCompass = true,
this.compassAlignment = Alignment.topRight,
this.compassPadding = const EdgeInsets.all(12),
this.onCameraChanged,
this.onTap,
this.onError,
this.loadingBuilder,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
provider | MapProvider | Yes | — |
initialCamera | MapCamera | Yes | — |
controller | MapController? | No | null |
markers | List<MapMarker> | No | const [] |
pointsOfInterest | List<MapPoi> | No | const [] |
routes | List<MapRoute> | No | const [] |
heatmap | MapHeatmap? | No | null |
clustering | MapClusterOptions? | No | null |
clusterBuilder | Widget Function(BuildContext, MapCluster, VoidCallback zoomIn)? | No | null |
onClusterTap | ValueChanged<MapCluster>? | No | null |
trackedEntities | List<MapTrackedEntity> | No | const [] |
initialFollowEntityId | String? | No | null |
onFollowChanged | ValueChanged<String?>? | No | null |
initialSelectedPoiId | String? | No | null |
onPoiSelected | ValueChanged<MapPoi?>? | No | null |
popupBuilder | Widget Function(BuildContext context, MapPoi poi, VoidCallback close)? | No | null |
closePopupOnMapTap | bool | No | true |
overlays | List<MapOverlay> | No | const [] |
borderRadius | double | No | 24 |
showCompass | bool | No | true |
compassAlignment | Alignment | No | Alignment.topRight |
compassPadding | EdgeInsets | No | const EdgeInsets.all(12) |
onCameraChanged | ValueChanged<MapCamera>? | No | null |
onTap | ValueChanged<GeoPoint>? | No | null |
onError | ValueChanged<Object>? | No | null |
loadingBuilder | WidgetBuilder? | No | null |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/maps/map_view/map_view.dart
This reference is generated from the MapView declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

