Enough-Software / enough_mail

IMAP, POP3 and SMTP clients for Dart developers. Contains both low level as well as a high level API.
Mozilla Public License 2.0
100 stars 56 forks source link

Error: A value of type 'List<int>' can't be assigned to a variable of type 'Uint8List'. #224

Closed Entrebear closed 7 months ago

Entrebear commented 9 months ago

Hi

I am on the beta channel of Flutter (Flutter 3.15.0-15.1.pre • channel beta • https://github.com/flutter/flutter.git, Framework • revision b2ec15bfa3 (6 days ago) • 2023-09-14 15:31:44 -0500, Engine • revision 5c86194494, Tools • Dart 3.2.0 (build 3.2.0-134.1.beta) • DevTools 2.27.0) and I received the following error:

~/AppData/Local/Pub/Cache/hosted/pub.dev/enough_mail-2.1.1/lib/src/private/smtp/commands/smtp_auth_cram_md5_command.dart:50:33: Error: A value of type 'List' can't be assigned to a variable of type 'Uint8List'.

I am also facing conflicts as enough_mail doesn't support the latest version of intl which leads to conflicts with other packages.

Please can you update to resolve these issues.

filly82 commented 7 months ago

same here with latest flutter stable release 3.16 which came out today

gmalakov commented 7 months ago

It just must be Uint8List.fromList(passwordDigest.bytes); Because utf8.encode(xxxx) now gives UInt8List. I've changed here and it works as charm.

robert-virkus commented 7 months ago

Thanks a lot guys! I wonder how this change could be release so that compatibility with older Flutter versions is not broken. Any ideas? Should this be released as a new major versionm, perhaps?

robert-virkus commented 7 months ago

Never mind - the change is compatible with prior versions of Flutter. Thanks a bunch!

robert-virkus commented 7 months ago

Released as v2.1.5