marcglasberg/assorted_layout_widgets

Building with flutter for web fails

tchavet opened this issue · 2 comments

When building with flutter for web I get the following error:

Target dart2js failed: Exception: /opt/flutter/.pub-cache/hosted/pub.dartlang.org/assorted_layout_widgets-1.1.1/lib/src/minimum_raggedness.dart:20:61:

Error: The integer literal 9223372036854775807 can't be represented exactly in JavaScript.
    List<num> minimum = [0]..addAll(List<num>.filled(count, 9223372036854775807));
                                                            ^^^^^^^^^^^^^^^^^^^
/opt/flutter/.pub-cache/hosted/pub.dartlang.org/assorted_layout_widgets-1.1.1/lib/src/minimum_raggedness.dart:26:16:
Error: The integer literal 9223372036854775806 can't be represented exactly in JavaScript.
        return 9223372036854775806;
               ^^^^^^^^^^^^^^^^^^^
Error: Compilation failed.

It works fine when compiling for Android

Could you please tell me if version 1.1.2 solves the problem? Thanks.

Yes the problem is solved, thank you!