From 2642cd29194a5219e76f300532cf5e4667030259 Mon Sep 17 00:00:00 2001 From: Joscha <34318751+josxha@users.noreply.github.com> Date: Wed, 6 Dec 2023 18:46:06 +0100 Subject: [PATCH] chore: remove error in console for example app (#1762) --- example/lib/pages/plugin_scalebar.dart | 28 ++++++++++++-------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/example/lib/pages/plugin_scalebar.dart b/example/lib/pages/plugin_scalebar.dart index 42b16e3a9..4d82ef567 100644 --- a/example/lib/pages/plugin_scalebar.dart +++ b/example/lib/pages/plugin_scalebar.dart @@ -15,22 +15,20 @@ class PluginScaleBar extends StatelessWidget { return Scaffold( appBar: AppBar(title: const Text('Scale Bar Plugin')), drawer: const MenuDrawer(PluginScaleBar.route), - body: Flexible( - child: FlutterMap( - options: const MapOptions( - initialCenter: LatLng(51.5, -0.09), - initialZoom: 5, - ), - children: [ - openStreetMapTileLayer, - const FlutterMapScaleLayer( - lineColor: Colors.black, - lineWidth: 3, - textStyle: TextStyle(color: Colors.black, fontSize: 14), - padding: EdgeInsets.all(10), - ), - ], + body: FlutterMap( + options: const MapOptions( + initialCenter: LatLng(51.5, -0.09), + initialZoom: 5, ), + children: [ + openStreetMapTileLayer, + const FlutterMapScaleLayer( + lineColor: Colors.black, + lineWidth: 3, + textStyle: TextStyle(color: Colors.black, fontSize: 14), + padding: EdgeInsets.all(10), + ), + ], ), ); }