36 lines
1.1 KiB
Dart
36 lines
1.1 KiB
Dart
import 'package:agrilink_vocpro/features/dashboard/provider/dashboard_provider.dart';
|
|
import 'package:agrilink_vocpro/features/dashboard/view/dashboard_screen.dart';
|
|
import 'package:agrilink_vocpro/features/home/provider/home_provider.dart';
|
|
import 'package:agrilink_vocpro/features/home/view/home_screen.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.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 MultiProvider(
|
|
providers: [
|
|
ChangeNotifierProvider(create: (context) => HomeProvider()),
|
|
ChangeNotifierProvider(create: (context) => DashboardProvider()),
|
|
],
|
|
child: MaterialApp(
|
|
debugShowCheckedModeBanner: false,
|
|
title: 'Flutter Demo',
|
|
theme: ThemeData(
|
|
scaffoldBackgroundColor: Colors.white,
|
|
colorScheme: ColorScheme.fromSeed(seedColor: Colors.teal),
|
|
useMaterial3: true,
|
|
),
|
|
home: const DashboardScreen(),
|
|
),
|
|
);
|
|
}
|
|
}
|