- Hide unexpected gap between widgets
How It Works
Notes:
- Blue -> represent background color (eg. listview container's color)
- Black -> represent items (eg. listview children widgets)
- Red -> represent
SpaceFixerHorizontalLine
(widget to hide unexpected gap)
flutter pub add space_fixer
import 'package:space_fixer/space_fixer.dart';
SpaceFixerHorizontalLine()
SpaceFixerVerticalLine()
// ...
Container(
width: MediaQuery.of(context).size.width,
height: 50,
color: Colors.black,
),
SpaceFixerHorizontalLine(
context: context,
overflowHeight: 3,
overflowColor: Colors.black,
),
Container(
width: MediaQuery.of(context).size.width,
height: 50,
color: Colors.black,
),
// ...
See: example1.dart
This lib will most likely help to (temporarily) resolve issues like: unexpected divider, mysterious dividers, unexpected spacing, one pixel line between, dividing lines occur, unwanted divider lines, small gap, lines between items, gaps between items, background color leaks.