Skip to content
Discussion options

You must be logged in to vote

Hi @placeboroy, thanks for the question.

I am not entirely sure if you are asking for those Material default paddings to be removed from ALL elevated buttons on your theme, or for just a few specific buttons in your app.

Generally I would not recommend removing the padding from from all ElevatedButtons, so let's just go with that you want them removed from a few specific use cases.

In that case you can do something like this:

class ElevatedButtonShowcaseIcons extends StatelessWidget {
  const ElevatedButtonShowcaseIcons({super.key});

  @override
  Widget build(BuildContext context) {
    const double buttonSize = 55;
    return RepaintBoundary(
      child: Column(
        crossAxisAlign…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This issue is a usage question and will be moved to the Discussions section.
2 participants
Converted from issue

This discussion was converted from issue #296 on October 22, 2025 12:35.