File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,22 @@ import 'package:flutter/material.dart';
2
2
import 'package:github_colour/github_colour.dart' ;
3
3
4
4
void main () async {
5
+ // Construct an instance for future uses.
5
6
await GitHubColour .getInstance ();
6
7
runApp (const App ());
7
8
}
8
9
9
10
class App extends StatelessWidget {
10
11
const App ({Key ? key}) : super (key: key);
11
12
12
- // This widget is the root of your application.
13
13
@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
+ );
23
21
}
24
22
25
23
class GitHubColourDemo extends StatefulWidget {
You can’t perform that action at this time.
0 commit comments