For questions relating to Flutter's Container class. Use this tag in combination with the general [flutter] tag. If your question applies to Flutter more generally, use the [flutter] tag only.
Questions tagged [flutter-container]
107 questions
0
votes
2 answers
Flutter container to position bottom right
I have a flutter container (Trending text in violet) which is positioned top left right now. I am wondering what code changes i should do to position the container bottom right ?
Container(
height: 25.0,
…

Saurabh Kumar
- 16,353
- 49
- 133
- 212
0
votes
1 answer
Flutter Form Field floating at the top
I am having an issue with flutter forms.
Basically I have 3 simple rows added to a Stack. The last one contains a form. Below that there are 'Pinned' elements by Adobe XD, but the row containing the form is floating at the top of the screen... I…

Fewture Webdesign
- 128
- 10
0
votes
1 answer
Container padding EdgeInsets.fromLTRB changes background color
I want to align a text inside a container. I used the padding class for the container which contains the text. The padding works, but it seems EdgeInsets.fromLTRB offsets the text and the background color of the container all together. Why does it…

anar
- 11
- 3
0
votes
3 answers
Container fills the screen even when I specify `width` and `height`
I am working on a flutter project, and I would like to display a Container inside another one with specific sizes. However, when I specify the size of the Containers, it doesn't take it into consideration.
Here is a code sample:
import…

Valentin Vignal
- 6,151
- 2
- 33
- 73
0
votes
1 answer
When headline breaks in second line, the body text does not overflow clip correct
If I have a long headline, which breaks into two lines depending on length of the String, the body text is not clipping correct inside the Container widget
Expanded(
child: Container(
height: MediaQuery.of(context).size.height / 7.5,
…

th_lo
- 461
- 3
- 18
0
votes
2 answers
how to return AnimatinonContainer to its previous state?
How to make the AnimatedContainer return to its previous state (1) when the keyboard is closed? at the moment changing the location of the container happens via onTap
Widget _formAuth(String labelForm, String labelButton, void func()) {
return…

bahmN
- 47
- 5
0
votes
2 answers
flutter how to make a container expand with result from text field search
I was trying to make a dropdown like custom search -result page but it failed with some errors like RenderFlex children have non-zero flex but incoming height constraints are unbounded. Is there is any way to solve with out package?? when i remove…

A.K.J.94
- 492
- 6
- 14
0
votes
5 answers
flutter icon is not centered in container
I was trying to center the icon in a circular background but it failed even if I use a center widget as child unless increase container size.
Container(
height: 22,
width: 22,
decoration:…

A.K.J.94
- 492
- 6
- 14
0
votes
1 answer
How to change size of Container/PageView dynamically without Renderflex overflow error
I got a Container with a PageView inside which contains a handfull of Columns inside. Whenever the page is changed, a different height is assigned to the height of the Container. If the current page is 350 in size and the next should be 735, i get a…

DeadRabbit
- 1
- 1
0
votes
2 answers
Clikable Cell in flutter
Here is the image of my UI
I want to make each cell in 3rd column a clickable Cell that I can navigate from it to another page.

SH EB
- 61
- 8
0
votes
2 answers
how can i delete space between Expanded widgets in Column?
i tried to reduce space between Rows(Textfields) with height proprety,but it doesn't work,Sizedbox didn't work as well,can't omit expanded widget because of my filterList(it shows“A RenderFlex overflowed by pixels ” error),i tried to fix it with…

lily
- 63
- 1
- 8
0
votes
0 answers
Custom Shape for Container
Idea is to make a custom shaped container by giving it ShapeDecoration().
I used this thread as a reference.
Eventialy I achieved the shape I wanted, but once I wrap this custom shaped container with margin\padding\SizedBoxes around it - it's…

Oleksandr
- 1,396
- 1
- 8
- 14
0
votes
1 answer
Flutter container gets disappear
Don't know what I am missing here. Want to make the Container UI like the Material Filled Text Field. Just want to know whether we can use BorderSide and borderRadius together or they work separately. And using Container only How can I achieve…

Azhar Bhatti
- 91
- 1
- 3
- 14
0
votes
2 answers
How to expand a widget in ListView ontap?
I have created a ListView with container boxes as widgets. I want a specific container to expand onTap upto a specific screen height and width. I need help in implementing this in flutter. I have made a prototype on AdobeXD.
AdobeXD Prototype GIF
I…

RohitGanji
- 1
- 2
0
votes
1 answer
Flutter - GridView Custom Size Issue
I have been experimenting with flutter and GridView. Currently I have a number of containers appearing in a grid layout, however I want to add one more container below them and custom size it. I want all the existing containers to consume 60% of the…

Gt_develop
- 3
- 3