Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stack doesn't work inside Column - Flutter

Hope u all doing well. I have a problem with Stack and Column. When I want to use Stack inside Column's children, it doesn't work, anymore. here are 2 photos regarding my problem.

Not working:
enter image description here


Working:
enter image description here

like image 310
Mahdi Aghajani Avatar asked Dec 28 '20 21:12

Mahdi Aghajani


People also ask

Can we use column inside ListView in Flutter?

You can wrap your ListView widget inside the Expanded widget and this will allow the ListView to take all the available as long as the Column allows.


1 Answers

Since column and stack will take up the screen size. To be able to use both together, you need to give the contents a certain height or need to be wrapped with expanded

column(
   children[
  container(height:100 child:stack..... //container or expanded
   ])
like image 60
hasan karaman-goodsoft Avatar answered Oct 01 '22 08:10

hasan karaman-goodsoft