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

Does not work on Flutter Web #48

Closed
subair-zufi opened this issue Sep 3, 2020 · 1 comment
Closed

Does not work on Flutter Web #48

subair-zufi opened this issue Sep 3, 2020 · 1 comment

Comments

@subair-zufi
Copy link

Code

var id = Uuid.v1();
int idCardId = id.node;

Error

The following RangeError was thrown building IdApplicationsScreen(dirty):
max must be in range 0 < max ≤ 2^32, was 0

The relevant error-causing widget was: 
  IdApplicationsScreen file:///home/koha/Projects/sirajulhuda_app/lib/main.dart:37:48
When the exception was thrown, this was the stack: 
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 212:49  throw_
dart-sdk/lib/_internal/js_dev_runtime/patch/math_patch.dart 314:7             nextInt
packages/better_uuid/uuid_config.dart 29:29                                   generate
packages/better_uuid/uuid.dart 108:18                                         v1
packages/sirajulhuda_app/screens/id_applications_screen.dart 12:19            build

flutter-doctor

[✓] Flutter (Channel beta, 1.21.0-9.1.pre, on Linux, locale en_US.UTF-8)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Chrome - develop for the web
[!] Android Studio (version 4.0)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (2 available)

! Doctor found issues in 1 category.
@daegalus
Copy link
Owner

daegalus commented Sep 3, 2020

Unfortunately you are using better_uuid not uuid package. That is not my library and I can't provide support for it. Better UUID is located here: https://pub.dev/packages/better_uuid and the repo for it is https://gitlab.com/zinocu/uuid

My package is located here: https://pub.dev/packages/uuid and works differently.

@daegalus daegalus closed this as completed Sep 3, 2020
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