diff --git a/example/lib/main.dart b/example/lib/main.dart index f1993428..af9a7870 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -13,7 +13,7 @@ class MyApp extends StatelessWidget { return MaterialApp( title: 'Flutter Example', theme: ThemeData( - primarySwatch: Colors.grey, + primarySwatch: Colors.blue, ), home: HomePage(), ); diff --git a/example/web/main.dart b/example/web/main.dart index 002f07d0..6de19551 100644 --- a/example/web/main.dart +++ b/example/web/main.dart @@ -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(), + ); + } } \ No newline at end of file