Initial commit
This commit is contained in:
15
lib/main.dart
Normal file
15
lib/main.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:hive_flutter/hive_flutter.dart';
|
||||
import 'app.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await Hive.initFlutter();
|
||||
await Hive.openBox('zhinianBox');
|
||||
runApp(
|
||||
const ProviderScope(
|
||||
child: ZhinianApp(),
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user