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
Remove YaruAlertDialg and YaruSimpleDialog #203
Comments
Yes, we just want the close button, and the correct padding. If this last can be defined in the theme, those dialog widgets can be removed. |
What kind of padding properties do we need in DialogTheme? |
For yarudialogtitle, which is a stack of the title widget and the close button, the title padding needs to be zero |
Well the default dialog padding is |
Eventually this could be added to flutter itself? |
I also think so, it would be quite simple to implement. |
Would adding DialogTheme.contentPadding and titlePadding be enough? Unfortunately, DialogTheme is one of those old theme classes that don't follow the theme data pattern. It should have the same treatment as ListTileTheme recently did. |
It would be enough, yes :) |
The content padding is tricky, I would not overwrite this with the theme. Some dialogues need an even content padding, other do not |
But define a better default content padding wouldn't hurt, no? |
Ofc, you are right 👍 |
I posted it upper ;D |
Eventually just set the default padding yaru.dart to EdgeInsets.zero ? I fear dialogues could be so diverse that not default padding fits more than 2 or 3 cases |
* Consistent page transition on all desktop platforms. Per conversation in canonical/ubuntu-desktop-installer#1121 * Test for page transitions consistency on desktop platforms.
Eventually we should just remove those dialogs from yaruwidgets as they do not bring anything really except complexity. What one wants is the close button the rest can be done by the content inside or the dialog theme in yaru.dart
WDYT @Jupi007 ?
The text was updated successfully, but these errors were encountered: