saving refactorings
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:hive_flutter/adapters.dart';
|
||||
|
||||
import 'db/tables/poke_db.dart';
|
||||
|
||||
const pokeBoxName = 'pokes';
|
||||
|
||||
Future setupHive() async {
|
||||
await Hive.initFlutter();
|
||||
Hive.registerAdapter(PokeAdapter());
|
||||
await Hive.openBox(pokeBoxName);
|
||||
}
|
||||
Reference in New Issue
Block a user