mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 06:56:10 +00:00
Début filtres
This commit is contained in:
parent
033f7ec94a
commit
c25cc83ec2
2 changed files with 69 additions and 22 deletions
|
|
@ -18,6 +18,7 @@ Future<Database> getDatabaseInstance() async {
|
|||
var path = join(databasesPath, "library.db");
|
||||
|
||||
var exists = await databaseExists(path);
|
||||
exists = false;
|
||||
if (!exists) {
|
||||
print("Creating new copy from asset");
|
||||
|
||||
|
|
@ -52,7 +53,7 @@ Future<Item> getItemWithId(String id) async {
|
|||
}
|
||||
|
||||
Future<Item> loadChildrenItems(Item item) async {
|
||||
print("getChildrenItems " + item.ItemType);
|
||||
print("getChildrenItems " + (item?.ItemType ?? ""));
|
||||
if (item.ItemType.endsWith("Items")) {
|
||||
String itemType =
|
||||
item.ItemType.substring(0, item.ItemType.length - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue