miguelpruivo/flutter_file_picker

[Windows] The picker is pausing the ripple effect on buttons

Closed this issue · 3 comments

Describe the bug
When the picker opens the ripple in a button freezes.

Platform

  • Android
  • iOS
  • Web
  • Desktop

Platform OS version
Windows 11

How are you picking?

    ElevatedButton(
        onPressed: () async {
            String? selectedDirectory =
                await FilePicker.platform.getDirectoryPath();

            if (selectedDirectory != null) {
                sharedPreferencesProvider.setVaultPath(selectedDirectory);
            }
        },
        child: const Text('Select vault'),
    ),

Screenshots and/or video
This video is not mine, but you can see the exact same issue:
https://youtu.be/CMYErzgDNAE?si=SPURjHgdBPb4slYn&t=196

image
The ripple stays in this paused state until the dialogue gets closed.

Flutter Version details
Flutter (Channel stable, 3.16.2)

This issue is stale because it has been open for 14 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.

I also encounter this problem, all file dialogs works fine except getDirectoryPath, seems it freezes the application.
This also affects some my setState code in a loop.