zubairehman/Flogs

sembast dependency issue

jrastic opened this issue · 1 comments

Sembast released 3.4.0 - compile fails with:

../../.pub-cache/hosted/pub.dartlang.org/f_logs-2.0.1/lib/data/local/flog_dao.dart:37:52: Error: The argument type 'int?' can't be assigned to the parameter type 'Object' because 'int?' is nullable and 'Object' isn't.
 - 'Object' is from 'dart:core'.
    final finder = Finder(filter: Filter.byKey(log.id));
                                                   ^
../../.pub-cache/hosted/pub.dartlang.org/f_logs-2.0.1/lib/data/local/flog_dao.dart:47:52: Error: The argument type 'int?' can't be assigned to the parameter type 'Object' because 'int?' is nullable and 'Object' isn't.
 - 'Object' is from 'dart:core'.
    final finder = Finder(filter: Filter.byKey(log.id));

Temporary workaround is to fix sembast in dependencies to:

dependencies:
...
  sembast: "3.3.1+1"

I'm having the same issue here.

Agree with the proposed work around.