diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index 39d282f..c8a55d0 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -71,6 +71,34 @@ class _HomeScreenState extends State { if (_followMe) setState(() => _followMe = false); }, ), + // Zoom buttons + Positioned( + right: 10, + bottom: MediaQuery.of(context).padding.bottom + kBottomButtonBarMargin + 120, + child: Column( + children: [ + FloatingActionButton( + mini: true, + onPressed: () { + final currentZoom = _mapController.camera.zoom; + _mapController.move(_mapController.camera.center, currentZoom + 0.5); + }, + child: Icon(Icons.add), + heroTag: 'zoom_in', + ), + SizedBox(height: 8), + FloatingActionButton( + mini: true, + onPressed: () { + final currentZoom = _mapController.camera.zoom; + _mapController.move(_mapController.camera.center, currentZoom - 0.5); + }, + child: Icon(Icons.remove), + heroTag: 'zoom_out', + ), + ], + ), + ), Align( alignment: Alignment.bottomCenter, child: Padding(