main.dart 467 B

1234567891011121314151617181920212223
  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. theme: ThemeData(
  14. primarySwatch: Colors.blue,
  15. ),
  16. home: const HomePage(),
  17. );
  18. }
  19. }