SingleChildScrollView

490 views Asked by At

Encounter this error if added SingleChildScrollView In my screen it will still have others widgets as well, that's why i need to make my screen scrollable

return SingleChildScrollView(
          child: Column(
            children: [
              Expanded(
                child: ReorderableListView.builder(
                  shrinkWrap: true,
                  scrollController: ScrollController(),
                  physics: ScrollPhysics(),
                  itemCount: object.length,
                  onReorder:onReorder,
                  itemBuilder: (BuildContext context, int index) {
                    return...
                  },),
              ),
            ],
          ),
        );
1

There are 1 answers

0
Adelina On

Either set height to your ReorderableListView:

Container(
  height: 100,
  child: ReorderableListView(...
...

Or check this: How to use Expanded in SingleChildScrollView?