Answers for "Listview scrollable in container"

2

make recycler view non scrollable

//Override your LayoutManager's canScrollVertically::boolean
linearLayoutManager = new LinearLayoutManager(context) {
 @Override
 public boolean canScrollVertically() {
  return false;
 }
};
Posted by: Guest on June-14-2020
2

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');
                })
          ],
        ),
      ),
Posted by: Guest on August-02-2020
4

make scaffold scrollable flutter

@override
 Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(
      title: Text('News'),
    ),
    body: SingleChildScrollView(  // <-- wrap this around
      child: Column(
        children: <Widget>[
        ],
      ),
    ));
  }
Posted by: Guest on September-09-2020

Code answers related to "Listview scrollable in container"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language