Last active
November 20, 2020 15:13
-
-
Save dariadobsai/4c7eed598917360a429b8660aa6ee474 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_map/flutter_map.dart'; | |
import 'package:latlong/latlong.dart'; | |
class HomePage extends StatefulWidget { | |
@override | |
_HomePageState createState() => _HomePageState(); | |
} | |
class _HomePageState extends State<HomePage> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: FlutterMap( | |
options: MapOptions( | |
center: LatLng(51.5074, 0.1278), // London | |
zoom: 16.0, | |
minZoom: 10, | |
), | |
layers: [ | |
new TileLayerOptions( | |
urlTemplate: 'TODO', | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment