dgofman / nats_client

MIT License
16 stars 1 forks source link

Flutter 3.10.0 not work #5

Closed tungvt80 closed 1 year ago

tungvt80 commented 1 year ago

Error (Xcode): ../../.pub-cache/hosted/pub.dev/nats_client-2.1.1/lib/natslite/transport.dart:331:13: Error: A 'continue' label must be on a loop or a switch member.

dgofman commented 1 year ago

@tungvt80 What version of the flutter are you using? This issue was fixed in Dart in January. https://github.com/dart-lang/sdk/commit/49c7d930425b695d577802121f83a0bc77b39ef3

tungvt80 commented 1 year ago

I'm using new Flutter 3.10.0 buid false: Error (Xcode): ../../.pub-cache/hosted/pub.dev/nats_client-2.1.1/lib/natslite/transport.dart:331:13: Error: A 'continue' label must be on a loop or a switch member.

I'm fix: fluter downgrade Flutter 3.7.12 is Work

dgofman commented 1 year ago

@tungvt80 I have installed 3.10.0 on my local machine however I am unable to launch the debugger in Android Studio. So I reverted to 3.7 as well.

flutter downgrade 3.7.12 flutter --version

dgofman commented 1 year ago

@tungvt80

I published my changes https://pub.dev/packages/nats_client/versions/2.2.0

dgofman commented 1 year ago

Supports Dart 3.0.0