flutter_secure_storage icon indicating copy to clipboard operation
flutter_secure_storage copied to clipboard

[flutter_secure_storage_windows] Migrate to `win32 5.5.1` or higher

Open navaronbracke opened this issue 1 year ago • 0 comments

When using flutter_secure_storage 9.2.2 (which depends on flutter_secure_storage_windows 3.1.2), the version of flutter_secure_storage_windows requires a version of win32 that is not compatible with Dart 3.4.0 / Flutter 3.22.0 (and in effect also the latest stable, 3.5.0 / 3.24.0)

We should upgrade flutter_secure_storage_windows to that new win32 version.

The reason for this is that we get the following error, due to a change in Dart 3.4.0

../../../.pub-cache/hosted/pub.dev/win32-5.0.9/lib/src/guid.dart:32:9: Error: Type 'UnmodifiableUint8ListView' not found.
  final UnmodifiableUint8ListView bytes;
        ^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/win32-5.0.9/lib/src/guid.dart:32:9: Error: 'UnmodifiableUint8ListView' isn't a type.
  final UnmodifiableUint8ListView bytes;
        ^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/win32-5.0.9/lib/src/guid.dart:52:17: Error: Method not found: 'UnmodifiableUint8ListView'.
    return Guid(UnmodifiableUint8ListView(guid));
                ^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/win32-5.0.9/lib/src/guid.dart:56:31: Error: Method not found: 'UnmodifiableUint8ListView'.
  factory Guid.zero() => Guid(UnmodifiableUint8ListView(Uint8List(16)));
                              ^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/win32-5.0.9/lib/src/guid.dart:100:17: Error: Method not found: 'UnmodifiableUint8ListView'.
    return Guid(UnmodifiableUint8ListView(Uint8List.fromList(guidAsBytes)));
                ^^^^^^^^^^^^^^^^^^^^^^^^^

navaronbracke avatar Aug 28 '24 09:08 navaronbracke