CameraPosition cam = _kInitialPos;
return Scaffold(
appBar: AppBar(
elevation: 0.0,
title: Image.asset(
"assets/Logo_white_med.png",
fit: BoxFit.cover,
),
backgroundColor: Theme.of(context).primaryColor,
),
body: Container(
child: RubberBottomSheet(
scrollController: _scrollController,
header: Container(
width: MediaQuery.of(context).size.width,
color: Theme.of(context).highlightColor,
child: Icon(
FontAwesomeIcons.gripLines,
color: Theme.of(context).backgroundColor,
),
),
lowerLayer: Container(
child: GoogleMap(
mapType: MapType.normal,
initialCameraPosition: cam,
onMapCreated: (GoogleMapController controller) {
_mcontroller.complete(controller);
},
zoomGesturesEnabled: true,
),
),
upperLayer: ListView(
controller: _scrollController,
children: <Widget>[
Text("Jimmy"),
Text("Ted"),
Text("Fred"),
],
),
animationController: _controller,
),
),
);