feat: Implement logger

This commit is contained in:
Christian Pauly 2020-12-19 13:06:31 +01:00
commit e7de6d9e25
13 changed files with 80 additions and 131 deletions

View file

@ -1,13 +1,12 @@
import 'package:famedlysdk/famedlysdk.dart';
import 'package:moor/moor_web.dart';
import 'package:flutter/material.dart';
import 'dart:html';
Future<Database> constructDb(
{bool logStatements = false,
String filename = 'database.sqlite',
String password = ''}) async {
debugPrint('[Moor] Using moor web');
Logs().v('[Moor] Using moor web');
return Database(WebDatabase.withStorage(
MoorWebStorage.indexedDbIfSupported(filename),
logStatements: logStatements));