You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 25, 2019. It is now read-only.
How do restrict my showMap() function to occupy only 400.0 of the screen ? My below code does not seem to be working
showMap() {
return _mapView.show(
new MapOptions(
mapViewType: MapViewType.normal,
showUserLocation: true,
initialCameraPosition: new CameraPosition(
new Location(45.5235258, -122.6732493), 14.0),
title: "Recently Visited"),
toolbarActions: [new ToolbarAction("Close", 1)]);
}
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return new Scaffold(
body: new Container(
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
new Container(
height : 400.0,
child:new Padding(
padding: const EdgeInsets.all(0.2),
child: showMap(),
),
),
new Text(
'Hello World',
style: Theme.of(context).textTheme.display1,
),
],
),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
}