This is a regression in version 3.0.4, compiling this package works fine with 3.0.3:
../../../../.pub-cache/hosted/pub.dev/crypto-3.0.4/lib/src/sha512_fastsinks.dart:197:3:
Error: The integer literal 0x428a2f98d728ae22 can't be represented exactly in JavaScript.
0x428a2f98d728ae22,
^^^^^^^^^^^^^^^^^^
There are many more such errors in that file.