Files
todo/lib/main.dart
streaper2 7d391194f5 - séparation des taches faite et non,
- rapettisage de la taille des taches
2023-10-10 20:20:27 +02:00

35 lines
774 B
Dart

import 'package:flutter/material.dart';
import 'package:todo/pages/home_page.dart';
import 'package:hive_flutter/hive_flutter.dart';
void main() async {
//init hive
await Hive.initFlutter();
//open the box
await Hive.openBox('todoBox');
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Tody',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.red,
),
home: const MyHomePage(title: 'Tody'),
);
}
}