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