Skip to content

Commit 04b0b4b

Browse files
author
Tim Sneath
authored
[path_provider_windows] Resolve FFI stabilization changes (flutter#3485)
Ensures that path_provider_windows works on current null safety builds.
1 parent 35847e4 commit 04b0b4b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/path_provider/path_provider_windows/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.0-nullsafety.1
2+
3+
* Bump win32 dependency to latest version.
4+
15
## 0.1.0-nullsafety
26

37
* Migrate to null safety

packages/path_provider/path_provider_windows/lib/src/path_provider_windows_real.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class PathProviderWindows extends PathProviderPlatform {
116116
/// [WindowsKnownFolder].
117117
Future<String> getPath(String folderID) {
118118
final pathPtrPtr = allocate<Pointer<Utf16>>();
119-
final Pointer<GUID> knownFolderID = calloc<GUID>()..setGUID(folderID);
119+
final Pointer<GUID> knownFolderID = calloc<GUID>()..ref.setGUID(folderID);
120120

121121
try {
122122
final hr = SHGetKnownFolderPath(

packages/path_provider/path_provider_windows/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: path_provider_windows
22
description: Windows implementation of the path_provider plugin
33
homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider_windows
4-
version: 0.1.0-nullsafety
4+
version: 0.1.0-nullsafety.1
55

66
flutter:
77
plugin:
@@ -17,7 +17,7 @@ dependencies:
1717
flutter:
1818
sdk: flutter
1919
ffi: ^0.2.0-nullsafety.1
20-
win32: ^2.0.0-nullsafety.8
20+
win32: ^2.0.0-nullsafety.9
2121

2222
dev_dependencies:
2323
flutter_test:

0 commit comments

Comments
 (0)