file_selector_aurora

️ Project moved to new repository

The Aurora implementation of file_selector.

Usage

You have to include file_selector as dependencies in your pubspec.yaml file.

Supports only OS Aurora 5+!

pubspec.yaml

dependencies:
  file_selector: ^1.0.3

*.dart

import 'package:file_selector/file_selector.dart';
Future<void> _openImageFile(BuildContext context) async {
    const XTypeGroup typeGroup = XTypeGroup(
      extensions: <String>['jpg', 'png'],
    );

    final XFile? file = await openFile(acceptedTypeGroups: <XTypeGroup>[typeGroup]);

    print(file?.name);
}