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

retracted

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

example/example.dart

// Copyright (c) 2023, Dart | Windows. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

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

Publisher

verified publisherhalildurmus.dev

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

Homepage
Repository (GitHub)
View/report issues

Topics

#picker #win32 #ffi #windows

License

unknown (LICENSE)

Dependencies

ffi, win32

More

Packages that depend on filepicker_windows