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

[ad_1]

it is 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 preserving the EdgeInsets between listing components? That is how the white spacing seems 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].identify),
              onDismissed: (route) {
                setState(() {});
              },
              little one:
              Card(
                margin: EdgeInsets.symmetric(vertical: 4),
                little one:
                SizedBox(
                  top: 75,
                  little one: ListTile(
                    tileColor: Colours.crimson.shade200,
                    title: Textual content(widget.playing cards[index].identify),
                    trailing: ReorderableDragStartListener(
                      index: index,
                      little one: const Icon(Icons.drag_handle),
                    ),
                    onTap: (){
                    },
                  ),
                ),
              ),
            );
          },
        ),
      )
  ])

[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *