Questions tagged [constrainedbox]
5 questions
3
votes
1 answer
My ConstrainedBox does not maintain the minimum size dimension
I get a box with a card and centered text but when I decrease the size of the window my card disappears and my text overflows. I get an overflow error when the box gets smaller than the text.
I want the smallest box dimension to be 300x300 and the…

Golden Lion
- 3,840
- 2
- 26
- 35
2
votes
1 answer
How to set a ConstrainedBox for a bottomNavigationBar | Flutter
I was trying to setup a bottomNavigationBar with:
ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 500),
child: // child (Two buttons, occupying each ~40% of the total width
)
But when I do this, the bottomNavigationBar takes the…

cgutierr
- 133
- 1
- 10
0
votes
1 answer
How to fade out bottom when a wiget overflow ConstrainedBox?
I wrote a list of card, and limit its max height. I want the card bottom fade when its height is over the limit, fade is not displayed when the limit is not exceeded.
The following is the effect I want
my code
Widget _buildBody(BuildContext…

Jeremy
- 21
- 2
0
votes
1 answer
How to find the widget's current size to set the minimum size for the constraints in the Flutter?
I want to know how can I find a widget's default size to set it as constraints: minHeight or constraints: maxHeight properties?
For example if I have this widget:
Expanded(
child: Column(
children: [
// right…

GoodMan
- 542
- 6
- 19
0
votes
1 answer
How to make ConstrainedBox constrained by its parent in Flutter?
I'm using a TextScroll() inside a ConstrainedBox, but it sometimes overflows beyond the screen limits and I want it to not do that. How can I make the ConstrainedBox constrained by its parent or how do I avoid the screen overflow?
Thank you.

Lear
- 9
- 3