• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Why am I getting RenderCustomMultiChildLayoutBox object was given. Error

Resolved: Why am I getting RenderCustomMultiChildLayoutBox object was given. Error

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

In my homepage I have a column an a row inside it.And wrap them expanded widget as you can see .Everything is ok
This is Homepage
But if I create a stateless widget which has nothing but a TextFomField.and change this line from this
to this
then I get this exception “RenderFlex object was given an infinite size during layout”.
So I tried to use flutter inspector to fix the problem .And this is how its looked like

Untitled


And this is the Asd screen which has nothing except for one textbox
Can you help plase

Answer:

You don’t have to use multiple scaffold on the same page.You can remove scaffold from Asd widget.
Another solution but dont prefer:
Also, the issue is happening because of infinite height of Asd you can provide fixed height on widget.

If you have better answer, please add a comment about this, thank you!

dart flutter flutter-layout
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Passing 2 functions in onChange in react

24/03/2023

Resolved: Why doesn’t stringstream consume output during hex formatting?

24/03/2023

Resolved: CMake path for python3 libraries doesn’t change (windows 10)

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.