Skip to content

Commit

Permalink
chore: remove error in console for example app (#1762)
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha authored Dec 6, 2023
1 parent ec81782 commit 2642cd2
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions example/lib/pages/plugin_scalebar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
],
),
);
}
Expand Down

0 comments on commit 2642cd2

Please sign in to comment.