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

File and directory picker for Windows that uses common dialog controls.

example/main.dart

import 'package:filepicker_windows/filepicker_windows.dart';

void main() {
  final picker = 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 file = picker.getFile();
  if (file != null) {
    print('Selected file: ${file.path}');
  } else {
    print('No file selected.');
  }
}
119
likes
160
points
5.33k
downloads

Publisher

verified publisherhalildurmus.dev

Weekly Downloads

File and directory picker for Windows that uses common dialog controls.

Repository (GitHub)
View/report issues
Contributing

Topics

#picker #win32 #ffi #windows

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

ffi, ffi_leak_tracker, win32

More

Packages that depend on filepicker_windows