-
-
Notifications
You must be signed in to change notification settings - Fork 465
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
FR: Dialog: Actions & Keybindings #131
Comments
I don't like the idea of |
Well, maybe I didn't explain the proposal well. I'm not saying that https://api.flutter.dev/flutter/cupertino/CupertinoDialogAction-class.html |
But, in Windows, normal buttons are used as actions |
I agree. I don't want to have something different in terms of UI and end-user visible results. As I said, we could implement the UI of My proposal simply wants to improve the developer experience & end user usability, that's all 👍 |
KeybindingsAbout I tested with the latest stable (2.8.1) and pressing |
@bdlukaa On And the use of So, with current widgets we could be able to replicate most of my requirements in this FR. Nevertheless it could be interesting consider the implementation of a specialized |
Hello! Now, on the latest master, is possible to close the dialog opened by |
Hello! Now the dialog can be closed with Esc properly. Also, for the buttons, I think we can stay with the current buttons. |
I think the dialogues can be improved a bit.
After working with other frameworks and component palettes I think we could have the following improvements.
Actions: Instead of having a wide-open "
List <Widget>? actions
" we could have some specific class likeDialogAction
that allows having a title, maybe an (optional) icon, anonTap / onClick
callback and more importantly, attributes likeisDefaultAction
orisDestructiveAction
. The presentation would be as is usually done now withButton
elements but we would already have semantics and the ability to work better with the UI (the default action is highlighted in color, the destructive action is red, RTL support ...)Related to the above, I miss some key combinations:
Esc
to close the active dialogEnter
to "execute theisDefaultAction=true
action callback"Tab
to rotate the focus between the available actions, always starting with the default actionWhat do you think?
The text was updated successfully, but these errors were encountered: