Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sembast dependency issue #81

Open
jrastic opened this issue Jan 13, 2023 · 1 comment
Open

sembast dependency issue #81

jrastic opened this issue Jan 13, 2023 · 1 comment

Comments

@jrastic
Copy link

jrastic commented Jan 13, 2023

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"
@hbcneto
Copy link

hbcneto commented Jan 13, 2023

I'm having the same issue here.

Agree with the proposed work around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants