Hive: Hive Generator - false negative null safety check

Created on 4 Mar 2021  Â·  4Comments  Â·  Source: hivedb/hive

Steps to Reproduce
With hive_generator: ^0.9.0-nullsafety.1 in pubspec.yaml
Run flutter pub outdated --mode=null-safety

False Negative with Null Safety support

Package Name    Current               Upgradable           Resolvable            Latest
hive_generator  ✗0.9.0-nullsafety.1  ✗0.9.0-nullsafety.1  ✗0.9.0-nullsafety.1  ✗0.9.0-nullsafety.1

I think it's because the minimum version of dart sdk in hive_generator is >=2.10.0
Update to >=2.12.0 will probably fixe the problem

Version

  • Flutter version: 2.0.0
  • Dart version 2.12.0
  • Hive version: 1.6.0-nullsafety.2
  • Hive Generator version: 0.9.0-nullsafety.1
problem

Most helpful comment

source_gen now supports null-safety, yay! :D

All 4 comments

This could fixed by updating dart version to >2.12.0 for hive_generator and hive_flutter

Hive_generator depends on source_gen which does not supports null safety yet.

Hive_generator depends on source_gen which does not supports null safety yet.

Ok, thanks for the information. Wait & See ^_^

source_gen now supports null-safety, yay! :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yannickvg picture yannickvg  Â·  4Comments

ProfileID picture ProfileID  Â·  4Comments

SergeShkurko picture SergeShkurko  Â·  4Comments

ninest picture ninest  Â·  3Comments

Ferdzzzzzzzz picture Ferdzzzzzzzz  Â·  3Comments