您可以在 onPositionChanged 中使用 mapController 的边界:
FlutterMap(
mapController: _mapController,
options: MapOptions(
center: _currentLocation,
zoom: 10,
onPositionChanged: (position, e) {
var extent = _mapController.bounds; // <= this line here
}),
layers: [],
),