main.dart 725 B

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