Flutter

[Error] Vertical viewport was given unbounded height

Michelle Hwang 2021. 5. 20. 13:40
			ListView(
                children: [
                  Text(
                    'Explore Flights by Destination',
                    style: TextStyle(color: Colors.black, fontSize: 15),
                  ),
                  ListTile(
                    leading: Image(image: AssetImage('images/bg1.jpeg'), width: 90,),
                    title: Text('Khumbu Valley, Nepal'),
                    subtitle: Text('Nonstop - 5h 16m+'),
                    minLeadingWidth: 100,
                  ),
                  Divider(thickness: 2,),
            )

Error 남.. ListView 에 scrollDirection과 shringWray넣어주면 에러 해결!

       scrollDirection: Axis.vertical,
       shrinkWrap: true,

'Flutter' 카테고리의 다른 글

DropdownButton  (0) 2021.05.26
Positioned / Positioned.fill  (0) 2021.05.25
Provider 사용하기.  (0) 2021.05.08
WebView_flutter 플러그인  (0) 2021.05.03
Elevated button 모서리 둥글게  (0) 2021.04.16