filepicker_windows 2.0.0-nullsafety.0 copy "filepicker_windows: ^2.0.0-nullsafety.0" to clipboard
filepicker_windows: ^2.0.0-nullsafety.0 copied to clipboard

outdated

A plugin that uses FFI to offer file selection in Windows using the modern common item dialog box.

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);
  }
}
106
likes
0
pub points
89%
popularity

Publisher

verified publisherhalildurmus.dev

A plugin that uses FFI to offer file selection in Windows using the modern common item dialog box.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

ffi, win32

More

Packages that depend on filepicker_windows