main.dart 668 B

123456789101112131415161718192021222324252627
  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. );
  23. }
  24. }