main.dart 678 B

12345678910111213141516171819202122232425262728
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_windmill/pages/home_page.dart';
  3. /// Description: enter point
  4. /// Time : 07/08/2024 Monday
  5. /// Author : liuyuqi.gov@msn.cn
  6. void main() {
  7. WidgetsFlutterBinding.ensureInitialized();
  8. runApp(const MyApp());
  9. }
  10. class MyApp extends StatelessWidget {
  11. const MyApp({super.key});
  12. // This widget is the root of your application.
  13. @override
  14. Widget build(BuildContext context) {
  15. return MaterialApp(
  16. title: '小风车',
  17. theme: ThemeData(
  18. primarySwatch: Colors.blue,
  19. ),
  20. home: const HomePage(),
  21. // routes: Routes.on,
  22. // initialRoute: Routes.home,
  23. );
  24. }
  25. }