easytodo/lib/main.dart
2024-03-27 12:25:26 +05:30

23 lines
499 B
Dart

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(),
);
}
}