easytodo/lib/main.dart

23 lines
499 B
Dart
Raw Normal View History

2024-03-27 06:55:26 +00:00
import 'package:flutter/material.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'pages/home_page.dart';
void main() async {
await Hive.initFlutter();
// ignore: unused_local_variable
var box = await Hive.openBox('mybox');
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
debugShowCheckedModeBanner: false,
home: HomePage(),
);
}
}