123456789101112131415161718192021222324 |
- import 'package:flutter/material.dart';
- import 'package:flutter_provider_demo/routes.dart';
- void main() {
- runApp(const MyApp());
- }
- class MyApp extends StatelessWidget {
- const MyApp({super.key});
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Provider Demo',
- debugShowCheckedModeBanner: false,
- theme: ThemeData(
- primarySwatch: Colors.blue,
- ),
- initialRoute: Routes.index,
- onGenerateRoute: Routes.generateRoute,
- );
- }
- }
|