Widget _buildMapView() => Stack(
children: [
ArcGISMapView(
controllerProvider: () => _mapViewController,
onMapViewReady: _onMapViewReady,
),
// Display a progress indicator until the map is ready.
Visibility(
visible: !_ready,
child: SizedBox.expand(
child: Container(
color: Colors.white30,
child: const Center(
child: CircularProgressIndicator(),
),
),
),
),
],
);