build: Update flutter_map package
This commit is contained in:
parent
97292c1e3a
commit
7627f7b8ed
3 changed files with 145 additions and 17 deletions
|
|
@ -32,8 +32,8 @@ class MapBubble extends StatelessWidget {
|
|||
children: <Widget>[
|
||||
FlutterMap(
|
||||
options: MapOptions(
|
||||
center: LatLng(latitude, longitude),
|
||||
zoom: zoom,
|
||||
initialCenter: LatLng(latitude, longitude),
|
||||
initialZoom: zoom,
|
||||
),
|
||||
children: [
|
||||
TileLayer(
|
||||
|
|
@ -50,7 +50,7 @@ class MapBubble extends StatelessWidget {
|
|||
point: LatLng(latitude, longitude),
|
||||
width: 30,
|
||||
height: 30,
|
||||
builder: (_) => Transform.translate(
|
||||
child: Transform.translate(
|
||||
// No idea why the offset has to be like this, instead of -15
|
||||
// It has been determined by trying out, though, that this yields
|
||||
// the tip of the location pin to be static when zooming.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue