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

Remove YaruAlertDialg and YaruSimpleDialog #203

Closed
Feichtmeier opened this issue Sep 16, 2022 · 13 comments · Fixed by #285
Closed

Remove YaruAlertDialg and YaruSimpleDialog #203

Feichtmeier opened this issue Sep 16, 2022 · 13 comments · Fixed by #285
Assignees

Comments

@Feichtmeier
Copy link
Member

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 ?

@Jupi007
Copy link
Member

Jupi007 commented Sep 16, 2022

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.

@jpnurmi
Copy link
Member

jpnurmi commented Sep 24, 2022

What kind of padding properties do we need in DialogTheme?

@Feichtmeier
Copy link
Member Author

For yarudialogtitle, which is a stack of the title widget and the close button, the title padding needs to be zero
Content padding does not interfere with the close button
But I'm not sure if this is an the best way

@Jupi007
Copy link
Member

Jupi007 commented Sep 24, 2022

Well the default dialog padding is EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0), but it looks weird.
Yaru*Dialog was define a padding of 20 on each side, and also it removes it for the title.

@Feichtmeier
Copy link
Member Author

Eventually this could be added to flutter itself?

@Jupi007
Copy link
Member

Jupi007 commented Sep 24, 2022

I also think so, it would be quite simple to implement.

@jpnurmi
Copy link
Member

jpnurmi commented Sep 24, 2022

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.

@Jupi007
Copy link
Member

Jupi007 commented Sep 24, 2022

It would be enough, yes :)

@Feichtmeier
Copy link
Member Author

The content padding is tricky, I would not overwrite this with the theme. Some dialogues need an even content padding, other do not
I would eventually only add the title padding

@Jupi007
Copy link
Member

Jupi007 commented Sep 24, 2022

But define a better default content padding wouldn't hurt, no?
You would still be able to overwrite it, indeed :)

@Feichtmeier
Copy link
Member Author

Ofc, you are right 👍
I don't remember the default padding, is it huge?

@Jupi007
Copy link
Member

Jupi007 commented Sep 24, 2022

I posted it upper ;D
It is EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0), and honesty this looks weird (look at the fullscreen carousel padding in software app).

@Feichtmeier
Copy link
Member Author

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

@Feichtmeier Feichtmeier self-assigned this Oct 12, 2022
Feichtmeier added a commit that referenced this issue Oct 12, 2022
Feichtmeier pushed a commit that referenced this issue Feb 22, 2024
* Consistent page transition on all desktop platforms.

Per conversation in canonical/ubuntu-desktop-installer#1121

* Test for page transitions consistency on

desktop platforms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants