If I use Row() instead of Center(), it will not be displayed,just blank.
I expect a music player like layout.
Make 2 Row, the 1st Row contain "LeftMenu" and "Expanded Container" for content .
If I use Row() instead of Center(), it will not be displayed,just blank.
I expect a music player like layout.
Make 2 Row, the 1st Row contain "LeftMenu" and "Expanded Container" for content .
3
Answers
This is actually the wrong question. The real problem is: if the ListView is nested by Column, Row, it will not be displayed. You need to use Expanded or Container on the outside and then nest it with Colmn or Row.
Putting this in scaffold gives you the left menu:
Putting this inside scaffold body works. Expanded and a row:
If you replace center with row, it probably displays but in the top left corner and not middle. Try to wrap your Row with Center and it should display in the middle. For the row you need to add a mainAxisAlignment.