From 670d8fa5706ec16d816bca6c87e08c9c4dc96a60 Mon Sep 17 00:00:00 2001 From: Mark Hu Date: Wed, 23 Dec 2020 16:14:24 +0800 Subject: [PATCH] update example --- example/lib/main.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/example/lib/main.dart b/example/lib/main.dart index fab13fe..3b9783d 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -50,6 +50,13 @@ class _MyHomePageState extends State { }); }, child: _imageFile != null ? Image.file(_imageFile) : Image.asset('assets/panorama.jpg'), + hotspots: [ + Hotspot(latitude: -42.0, longitude: -46.0, widget: FloatingActionButton(child: Icon(Icons.search), tooltip: "flowers", onPressed: () {})), + Hotspot(latitude: -11.0, longitude: -129.0, widget: FloatingActionButton(child: Icon(Icons.open_in_browser), onPressed: () {})), + Hotspot(latitude: -33.0, longitude: 123.0, widget: FloatingActionButton(child: Icon(Icons.arrow_upward), onPressed: () {})), + Hotspot(latitude: -23.0, longitude: 23.0, widget: FloatingActionButton(child: Icon(Icons.double_arrow), onPressed: () {})), + Hotspot(latitude: -28.0, longitude: 77.0, widget: FloatingActionButton(child: Icon(Icons.apps), onPressed: () {})), + ], ), Text('${_lon.toStringAsFixed(3)}, ${_lat.toStringAsFixed(3)}, ${_tilt.toStringAsFixed(3)}'), ],