Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: add YaruComboBox #664

Open
jpnurmi opened this issue Mar 6, 2023 · 3 comments
Open

Proposal: add YaruComboBox #664

jpnurmi opened this issue Mar 6, 2023 · 3 comments
Labels
enhancement New feature or request widgets

Comments

@jpnurmi
Copy link
Member

jpnurmi commented Mar 6, 2023

The old route-based (Yaru)PopupMenuButton and DropdownButton, and the new overlay-based DropdownMenu all have some problems that make them suboptimal. The former have hardcoded 300ms transitions that make them feel out of place on desktop, limited theming that makes it impossible to customize mouse cursors, and the latter is not possible to make non-editable with the current stable version of Flutter.

We could try building our own MenuAnchor-based solution and perhaps call it YaruComboBox inspired by Qt and GTK.

@whiskeyPeak
Copy link
Contributor

There's also no way to get rid of the trailing icon for the DropdownMenu widget. Even if you feed it an empty SizedBox, there is still going to be an inkwell like area that response to mouse clicks.
I've experimented a bit with the MenuAnchor widget and it's incredibly customizable.

@whiskeyPeak
Copy link
Contributor

@jpnurmi This PR should make things a little easier :) flutter/flutter#123723

@madsrh
Copy link
Member

madsrh commented Apr 1, 2023

With the current (Yaru)PopupMenuButton there's also no way to add a floatingLabelBehavior. This would also be nice to have in a combobox 😊

@Feichtmeier Feichtmeier added enhancement New feature or request widgets labels Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request widgets
Projects
None yet
Development

No branches or pull requests

4 participants