miguelpruivo / flutter_file_picker

File picker plugin for Flutter, compatible with mobile (iOS & Android), Web, Desktop (Mac, Linux, Windows) platforms with Flutter Go support.
MIT License
1.35k stars 672 forks source link

FilePicker on Linux will not suggest the given fileName - always empty #1613

Closed saif-ellafi closed 1 month ago

saif-ellafi commented 1 month ago

Hi all

Describe the bug The parameter fileName is ignored on Ubuntu 24.04 at least. The file picker will suggest an empty name.

Platform

Platform OS version

System Details Report


Report details

Hardware Information:

Software Information:

How are you picking?

      String? path;
      path = await FilePicker.platform.saveFile(
        dialogTitle: 'export file',
        bytes: fileBytes,
        type: FileType.custom,
        fileName: 'app-export.log',
        allowedExtensions: <String>['log']
      );

Details to reproduce the issue Nothing special really.

Error Log No errors.

Screenshots and/or video image

Flutter Version details

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on Ubuntu 24.04.1 LTS 6.8.0-45-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.94.2)
[✓] Connected device (1 available)
[✓] Network resources

! Doctor found issues in 1 category.

Additional context Add any other context about the problem here.

saif-ellafi commented 1 month ago

Looks like more of the binaries issue, the snap and flatpak builds of my app don't have this issue.