Skip to content

Instantly share code, notes, and snippets.

@Aditsyal Aditsyal/googleMapWidget.dart Secret
Last active Apr 10, 2019

What would you like to do?
CameraPosition _initialPosition = CameraPosition(target: LatLng(26.8206, 30.8025));
Completer<GoogleMapController> _controller = Completer();
void _onMapCreated(GoogleMapController controller) {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Maps in Flutter'),
centerTitle: true,
body: Stack(
children: <Widget>[
onMapCreated: _onMapCreated,
initialCameraPosition: _initialPosition,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.