Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[path_provider_windows] Resolve FFI stabilization changes #3485

Merged
merged 2 commits into from
Jan 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/path_provider/path_provider_windows/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.0-nullsafety.1

* Bump win32 dependency to latest version.

## 0.1.0-nullsafety

* Migrate to null safety
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class PathProviderWindows extends PathProviderPlatform {
/// [WindowsKnownFolder].
Future<String> getPath(String folderID) {
final pathPtrPtr = allocate<Pointer<Utf16>>();
final Pointer<GUID> knownFolderID = calloc<GUID>()..setGUID(folderID);
final Pointer<GUID> knownFolderID = calloc<GUID>()..ref.setGUID(folderID);

try {
final hr = SHGetKnownFolderPath(
Expand Down
4 changes: 2 additions & 2 deletions packages/path_provider/path_provider_windows/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: path_provider_windows
description: Windows implementation of the path_provider plugin
homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider_windows
version: 0.1.0-nullsafety
version: 0.1.0-nullsafety.1

flutter:
plugin:
Expand All @@ -17,7 +17,7 @@ dependencies:
flutter:
sdk: flutter
ffi: ^0.2.0-nullsafety.1
win32: ^2.0.0-nullsafety.8
win32: ^2.0.0-nullsafety.9

dev_dependencies:
flutter_test:
Expand Down