Отображение вида оповещения в панели инструментов (Flutter)

Я хотел бы отобразить просмотр предупреждений с помощью ползунка внутри. Я хочу, чтобы просмотр предупреждений отображался поверх моего просмотра карты, и когда я закончу с просмотром предупреждений, я хочу, чтобы он отклонил и снова отобразил отображение карт.

Widget displayMap() {
mapView = new MapView();
double latitude = 0.0;
double longitude = 0.0;

int radius = 0;

mapView.show(
new MapOptions(

title: "Camera",
hideToolbar: false,
showUserLocation: true,
showMyLocationButton: true,
initialCameraPosition:
 new CameraPosition(new Location(0.0, 0.0), 6.0),
),

toolbarActions: <ToolbarAction>[new ToolbarAction("Change", 1)],

);

mapView.onToolbarAction.listen((identifier){
switch(identifier){
case 1:
  //Display alertview here with a slider???? is it even possible?
  break;
}
});

mapView.onLocationUpdated.listen((location){

double latitude = location.latitude;
double longitude = location.longitude;

for(int i = 0; i < points.length; i++){
  cameraRadius(latitude, longitude, points[i].getY(), points[i].getX(), 
  points);
 }

});

mapView.onMapReady.listen((_){
  mapView.visibleAnnotations;
});

mapView.setMarkers(markers);
}

0 ответов

Другие вопросы по тегам