Remove redundant SingleChildScrollView

This commit is contained in:
Ankit Mahato
2023-04-30 16:58:41 +05:30
parent efb1bbc2d3
commit 0319ee9cc3

View File

@ -97,9 +97,7 @@ class _CollectionPaneState extends ConsumerState<CollectionPane> {
),
kVSpacer8,
const Expanded(
child: SingleChildScrollView(
child: RequestList(),
),
child: RequestList(),
),
],
),
@ -127,9 +125,7 @@ class _RequestListState extends ConsumerState<RequestList> {
final requestItems = ref.watch(collectionStateNotifierProvider)!;
return ReorderableListView.builder(
buildDefaultDragHandles: false,
shrinkWrap: true,
itemCount: requestItems.length,
physics: const NeverScrollableScrollPhysics(),
onReorder: (int oldIndex, int newIndex) {
if (oldIndex < newIndex) {
newIndex -= 1;