flutter singlechildscrollview with listview builder code example
Example 1: scroll column with listview
SingleChildScrollView(
physics: ScrollPhysics(),
child: Column(
children: <Widget>[
Text('Hey'),
ListView.builder(
physics: NeverScrollableScrollPhysics(),
shrinkWrap: true,
itemCount:18,
itemBuilder: (context,index){
return Text('Some text');
})
],
),
),
Example 2: listview inside singlechildscrollview flutter scrolling
SingleChildScrollView
Column
Container
ListView(
shrinkWrap: true,
physics: NeverScrollableScrollPhysics(),
)
Example 3: listview inside singlechildscrollview flutter scrolling
ListView(
primary: false,
shrinkWrap: true,
),