2024-09-10 01:32:13 +04:00
|
|
|
import 'package:flutter/material.dart';
|
2024-09-11 20:13:39 +04:00
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'task_provider.dart';
|
|
|
|
import 'task_list_screen.dart';
|
2024-09-10 01:32:13 +04:00
|
|
|
|
|
|
|
void main() {
|
2024-09-11 20:13:39 +04:00
|
|
|
runApp(
|
|
|
|
MultiProvider(
|
|
|
|
providers: [
|
|
|
|
ChangeNotifierProvider(create: (_) => TaskProvider()),
|
|
|
|
],
|
|
|
|
child: MyApp(),
|
|
|
|
),
|
|
|
|
);
|
2024-09-10 01:32:13 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return MaterialApp(
|
2024-09-11 20:13:39 +04:00
|
|
|
title: 'ToDo List',
|
2024-09-10 02:00:11 +04:00
|
|
|
debugShowCheckedModeBanner: false,
|
2024-09-10 01:32:13 +04:00
|
|
|
theme: ThemeData(
|
2024-09-11 20:13:39 +04:00
|
|
|
primarySwatch: Colors.blue,
|
2024-09-10 01:41:34 +04:00
|
|
|
),
|
2024-09-11 20:13:39 +04:00
|
|
|
home: TaskListScreen(),
|
2024-09-10 01:32:13 +04:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|