Skip to content

Commit

Permalink
perf: Example Theme 修改 Example 主题色。 (#204)
Browse files Browse the repository at this point in the history
* perf: `Demo Theme`  修改 Demo 主题色。

* perf: remove async
  • Loading branch information
violinday authored Apr 29, 2022
1 parent 3e28f7f commit e90f411
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'Flutter Example',
theme: ThemeData(
primarySwatch: Colors.grey,
primarySwatch: Colors.blue,
),
home: HomePage(),
);
Expand Down
20 changes: 17 additions & 3 deletions example/web/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@

// TODO: change `my_app` to refer to your app package name.
import 'package:example/main.dart' as app;
import 'package:example/sample/home/home.dart';
import 'package:flutter/material.dart';

main() async {
app.main();
main() {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Example',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: HomePage(),
);
}
}

0 comments on commit e90f411

Please sign in to comment.