android – Take away white area/padding on drag in ReorderableListView

[ad_1]

this can be a follow-up of this query.
I am getting some white area after I drag the listing merchandise to reorder it. How can I do away with the white spacing whereas holding the EdgeInsets between listing components? That is how the white spacing seems to be like when reordering the merchandise:

enter image description here

And that is my code to construct the physique of the Scaffold:

physique:
  Stack(
    kids: [
      Positioned(
        child: ReorderableListView.builder(
        buildDefaultDragHandles: false,
          itemCount: widget.cards.length,
          itemBuilder: (context, index) {
            return Dismissible(
              key: Key(widget.cards[index].title),
              onDismissed: (route) {
                setState(() {});
              },
              youngster:
              Card(
                margin: EdgeInsets.symmetric(vertical: 4),
                youngster:
                SizedBox(
                  top: 75,
                  youngster: ListTile(
                    tileColor: Colours.purple.shade200,
                    title: Textual content(widget.playing cards[index].title),
                    trailing: ReorderableDragStartListener(
                      index: index,
                      youngster: const Icon(Icons.drag_handle),
                    ),
                    onTap: (){
                    },
                  ),
                ),
              ),
            );
          },
        ),
      )
  ])

[ad_2]

Leave a Reply