feat(workspace): refresh desktop editing experience and prepare 0.1.2
Gitea CI / Build Android APK (pull_request) Canceled after 0s
Gitea CI / Build Windows x64 app (pull_request) Canceled after 0s
Gitea CI / Audit and package Windows x64 (pull_request) Canceled after 0s
Gitea CI / Assemble and validate CI artifacts (pull_request) Canceled after 0s
Gitea CI / Gitea CI passed (pull_request) Canceled after 0s
Gitea CI / Check code and tests (pull_request) Canceled after 6m29s
Gitea CI / Build Android APK (pull_request) Canceled after 0s
Gitea CI / Build Windows x64 app (pull_request) Canceled after 0s
Gitea CI / Audit and package Windows x64 (pull_request) Canceled after 0s
Gitea CI / Assemble and validate CI artifacts (pull_request) Canceled after 0s
Gitea CI / Gitea CI passed (pull_request) Canceled after 0s
Gitea CI / Check code and tests (pull_request) Canceled after 6m29s
This commit is contained in:
1 parent
aa5255d1e4
commit
2e0033ce2d
260 files changed
+43963
-5591
No files matched your search
@@ -4,6 +4,7 @@ export 'src/window_chrome_session.dart';
|
||||
export 'src/window_header_layout.dart';
|
||||
export 'src/fullscreen.dart';
|
||||
export 'src/file_drop.dart';
|
||||
export 'src/file_picker.dart';
|
||||
export 'src/file_drop_region.dart';
|
||||
export 'src/context_menu.dart';
|
||||
export 'src/device_info.dart';
|
||||
@@ -0,0 +1,16 @@
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
/// Selects local files in a sheet attached to the macOS host window.
|
||||
abstract final class NativeFilePicker {
|
||||
static const _channel = MethodChannel('cutdex_native/file_picker');
|
||||
|
||||
/// Returns an empty list when the user cancels the selection.
|
||||
static Future<List<String>> pickFiles({
|
||||
required List<String> allowedExtensions,
|
||||
}) async {
|
||||
final paths = await _channel.invokeListMethod<String>('pickFiles', {
|
||||
'allowedExtensions': allowedExtensions,
|
||||
});
|
||||
return paths ?? const [];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user