main.dart 509 B

123456789101112131415161718192021222324
  1. import 'package:flutter/material.dart';
  2. import 'pages/home_page.dart';
  3. void main() {
  4. runApp(const MyApp());
  5. }
  6. class MyApp extends StatelessWidget {
  7. const MyApp({Key? key}) : super(key: key);
  8. // This widget is the root of your application.
  9. @override
  10. Widget build(BuildContext context) {
  11. return MaterialApp(
  12. title: '图片轮播App',
  13. debugShowCheckedModeBanner: false,
  14. theme: ThemeData(
  15. primarySwatch: Colors.blue,
  16. ),
  17. home: const HomePage(),
  18. );
  19. }
  20. }