Skip to content

Commit d3ff16c

Browse files
committed
Update navigation drawer
1 parent e51fc28 commit d3ff16c

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

example/lib/main.dart

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,13 @@ class _ExampleMapState extends State<ExampleMap> {
184184
: NavigationDrawer(children: _buildTiles(context)),
185185
body: Row(
186186
children: [
187-
SizedBox(
188-
width: 250,
189-
child: ListView(
190-
children: _buildTiles(context),
187+
if (isLargeScreen)
188+
SizedBox(
189+
width: 250,
190+
child: ListView(
191+
children: _buildTiles(context),
192+
),
191193
),
192-
),
193194
Expanded(
194195
child: Stack(
195196
children: [
@@ -426,18 +427,20 @@ class _ExampleMapState extends State<ExampleMap> {
426427
_navigateTo(context, VectorLayerExamplePage());
427428
},
428429
),
429-
_buildTile(
430-
title: "Export Image Example",
431-
onTap: () {
432-
_navigateTo(context, ExportImageExamplePage());
433-
},
434-
),
435-
_buildTile(
436-
title: "Location Indicator Example",
437-
onTap: () {
438-
_navigateTo(context, LocationIndicatorExamplePage());
439-
},
440-
),
430+
if (!kIsWeb)
431+
_buildTile(
432+
title: "Export Image Example",
433+
onTap: () {
434+
_navigateTo(context, ExportImageExamplePage());
435+
},
436+
),
437+
if (!kIsWeb)
438+
_buildTile(
439+
title: "Location Indicator Example",
440+
onTap: () {
441+
_navigateTo(context, LocationIndicatorExamplePage());
442+
},
443+
),
441444
_buildTile(
442445
title: "Basemap Style Example",
443446
onTap: () {

0 commit comments

Comments
 (0)