main.dart 756 B

1234567891011121314151617181920212223242526272829
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_news/models/config.dart';
  3. import 'package:flutter_news/pages/home_page.dart';
  4. /// Description: 主页
  5. /// Time : 07/05/2023 Wednesday
  6. /// Author : liuyuqi.gov@msn.cn
  7. void main() {
  8. Config.init(() => 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. debugShowCheckedModeBanner: false,
  17. title: 'News',
  18. theme: ThemeData(
  19. primarySwatch: Colors.blue,
  20. ),
  21. home: const HomePage(),
  22. // initialRoute: Routes.splash,
  23. // onGenerateRoute: Routes.onGenerateRoute,
  24. );
  25. }
  26. }