filepicker_windows 2.1.4 copy "filepicker_windows: ^2.1.4" to clipboard
filepicker_windows: ^2.1.4 copied to clipboard

A package that allows file and directory selection for Windows using common dialog controls.

example/example.dart

import 'package:filepicker_windows/filepicker_windows.dart';

// Normal file open dialog box example

void main() {
  final file = OpenFilePicker()
    ..filterSpecification = {
      'Word Document (*.doc)': '*.doc',
      'Web Page (*.htm; *.html)': '*.htm;*.html',
      'Text Document (*.txt)': '*.txt',
      'All Files': '*.*'
    }
    ..defaultFilterIndex = 0
    ..defaultExtension = 'doc'
    ..title = 'Select a document';

  final result = file.getFile();
  if (result != null) {
    print(result.path);
  }
}
115
likes
160
points
3.3k
downloads

Publisher

verified publisherhalildurmus.dev

Weekly Downloads

A package that allows file and directory selection for Windows using common dialog controls.

Repository (GitHub)
View/report issues
Contributing

Topics

#picker #win32 #ffi #windows

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

ffi, win32

More

Packages that depend on filepicker_windows