xxxxxxxxxx
List<Box> boxList = [];
Future<List<Box>> _openBox() async {
var dir = await getApplicationDocumentsDirectory();
Hive.init(dir.path);
var box_session = await Hive.openBox("box_session");
var box_comment = await Hive.openBox("box_comment");
boxList.add(box_session);
boxList.add(box_comment);
return boxList;
}
xxxxxxxxxx
List<Box> boxList = [];
Future<List<Box>> _openBox() async {
var dir = await getApplicationDocumentsDirectory();
Hive.init(dir.path);
var box_session = await Hive.openBox("box_session");
var box_comment = await Hive.openBox("box_comment");
boxList.add(box_session);
boxList.add(box_comment);
return boxList;
}