Change the color of the padding in Flutters FlatButton?

I want to have two colors in my FlatButton, like this: <a href="https://i.stack.imgur.com/MClOD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur....

Padding inside the button

Is there any way to use padding as a parameter inside the primary button? while doing so i don't have to use the padding widget anymore and i can choose the padding: E...

Conditional padding inside Flutter widget

I see <a href="https://stackoverflow.com/a/62077216/3808307">this</a> answer for conditional color I am trying to do the same for padding like so <pre><code...

How can we change the width/padding of a Flutter DropdownMenuItem in a Dropdown?

In Flutter, I can build a Dropdown with DropdownMenuItems, like this: <a href="https://i.stack.imgur.com/GnwfL.png" rel="noreferrer"><img src="https://i.stack.imgur.co...

Flutter remove bottom padding container

I created a custom dialogBox but when I add 2 buttons at the bottom I still have a padding, how can I remove it? This is my code <pre><code> contentBox(con...

Is there a way to join Flutter Widgets with Padding?

I have a Row of Flutter widgets that I want to separate with Padding, but only <em>between</em> the widgets. Sort of like the behavior for the join() function for List...

TextWidthBasis.longestLine alternative for AutoSizeText?

For a single line of text I have <pre><code>Center( child: Container( decoration: BoxDecoration( border: Border(...

How to get the height of the FloatingSearchBar widget?

Please, I want to get the height of the bar of FloatingSearchBar widget so I can adjust the top padding of the next widget to not go under the FloatingSearchBar! <...

Flutter ExpansionTile title vertical padding

How can I remove vertical padding in leading Widget in ExpansionTile so it looks like ListTile below it? <a href="https://i.stack.imgur.com/jlpN8.png" rel="nofo...

Flutter || Padding for floatingActionButton in flutter

In my flutter project I used a floatingActionButton and I want to add a padding but I don't know how to make the tree with my code. Any help is highly appreciated....

Is there a bootstrap container equivalent in Flutter?

I'm trying to build an app in flutter and I'm using <pre><code>Scaffold( appBar: AppBar( title: Text(Login), ), body: Text(&q...

How to remove the gap above and below the text on flutter

I am trying to put the text "Hello" right below the "123", but the bigger the text is, the bigger the gap. How do I remove the gap??? Flutter images are added below.</...

How to add Bottom Padding in Page View in Flutter

I want to add bottom padding for showing page in page view like this <a href="https://i.stack.imgur.com/m67Cx.jpg" rel="nofollow noreferrer">image</a>.

Reduce top &amp; bottom padding in BottomNavigationBar

I would like to reduce top and bottom padding of BottomNavigationBar but I want to keep the same icon height and the bar height to 50 pixels : <pre><code> bottom...

Remove or Set Padding in ListTile

I'm completely new to Flutter / Dart so pls excuse if this is a noob question. I'm trying to remove the space on top and bottom of the Text of a ListTile element from...