Skip to content

Commit 5ab6f1e

Browse files
committed
Fix example project
1 parent ba2286e commit 5ab6f1e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

example/lib/main.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import 'package:flutter/material.dart';
22
import 'package:maps_launcher/maps_launcher.dart';
33

4-
void main() => runApp(MyApp());
4+
void main() => runApp(const MyApp());
55

66
class MyApp extends StatelessWidget {
7+
const MyApp({Key? key}) : super(key: key);
8+
79
@override
810
Widget build(BuildContext context) {
911
return MaterialApp(
@@ -13,7 +15,7 @@ class MyApp extends StatelessWidget {
1315
),
1416
home: Scaffold(
1517
appBar: AppBar(
16-
title: Text(
18+
title: const Text(
1719
'Maps Launcher Demo',
1820
),
1921
),
@@ -25,13 +27,13 @@ class MyApp extends StatelessWidget {
2527
ElevatedButton(
2628
onPressed: () => MapsLauncher.launchQuery(
2729
'1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA'),
28-
child: Text('LAUNCH QUERY'),
30+
child: const Text('LAUNCH QUERY'),
2931
),
30-
SizedBox(height: 32),
32+
const SizedBox(height: 32),
3133
ElevatedButton(
3234
onPressed: () => MapsLauncher.launchCoordinates(
3335
37.4220041, -122.0862462, 'Google Headquarters are here'),
34-
child: Text('LAUNCH COORDINATES'),
36+
child: const Text('LAUNCH COORDINATES'),
3537
),
3638
],
3739
),

0 commit comments

Comments
 (0)