Skip to content

Commit bd48e75

Browse files
committed
Minor fix for example
1 parent 70b2d42 commit bd48e75

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

example/lib/main.dart

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,22 @@ import 'package:flutter/material.dart';
22
import 'package:github_colour/github_colour.dart';
33

44
void main() async {
5+
// Construct an instance for future uses.
56
await GitHubColour.getInstance();
67
runApp(const App());
78
}
89

910
class App extends StatelessWidget {
1011
const App({Key? key}) : super(key: key);
1112

12-
// This widget is the root of your application.
1313
@override
14-
Widget build(BuildContext context) {
15-
return MaterialApp(
16-
title: 'GitHub Language colour',
17-
theme: ThemeData(
18-
primarySwatch: Colors.blue,
19-
),
20-
home: const GitHubColourDemo(),
21-
);
22-
}
14+
Widget build(BuildContext context) => MaterialApp(
15+
title: 'GitHub Language colour',
16+
theme: ThemeData(
17+
primarySwatch: Colors.blue,
18+
),
19+
home: const GitHubColourDemo(),
20+
);
2321
}
2422

2523
class GitHubColourDemo extends StatefulWidget {

0 commit comments

Comments
 (0)