mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
Remove redundant SingleChildScrollView
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user