CPD_2024_todo/lib/main.dart

25 lines
607 B
Dart
Raw Normal View History

2024-10-22 20:42:08 +02:00
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'providers/todo_provider.dart';
import 'screens/todo_list_screen.dart';
void main() {
runApp(ToDoApp());
}
class ToDoApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider(
create: (_) => ToDoProvider(),
child: MaterialApp(
title: 'To-Do list',
theme: ThemeData(
primarySwatch: Colors.green,
),
home: ToDoListScreen(),
),
);
}
}