main.dart 559 B

123456789101112131415161718192021222324
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_provider_demo/routes.dart';
  3. void main() {
  4. runApp(const MyApp());
  5. }
  6. class MyApp extends StatelessWidget {
  7. const MyApp({super.key});
  8. // This widget is the root of your application.
  9. @override
  10. Widget build(BuildContext context) {
  11. return MaterialApp(
  12. title: 'Provider Demo',
  13. debugShowCheckedModeBanner: false,
  14. theme: ThemeData(
  15. primarySwatch: Colors.blue,
  16. ),
  17. initialRoute: Routes.index,
  18. onGenerateRoute: Routes.generateRoute,
  19. );
  20. }
  21. }