space between divider and container in flutter

Just give a height of 1 to the divider.

Divider(height: 1)

This will remove any padding it has.

Simple solution : Works Flawlessly 🎊🚀

Full code below :

ListView.separated(
     itemCount: 10,
     separatorBuilder: (_ , __ ) => Divider(height:1),
     itemBuilder: (BuildContext context, int index) {
       return ListTile(
         title: Text('item $index'),
       );
     },
);

Just remove divider replace with this line

      Container(color: Colors.grey, height: 1)

and set Column

    crossAxisAlignment: CrossAxisAlignment.stretch,