Space Fixer

https://github.com/erlangparasu/space_fixer

https://pub.dev/packages/space_fixer

Features

  • Hide unwanted/unexpected gap between widgets

Getting started

How It Works

Screenshot How It Works

Notes:

  • Blue -> represent background color (eg. listview container's color)
  • Black -> represent items (eg. listview children widgets)
  • Red -> represent SpaceFixerHorizontalLine (helper to hide unwanted gap)

Usage

flutter pub add space_fixer
import 'package:space_fixer/space_fixer.dart';

TODO: Include short and useful examples for package users. Add longer examples to /example folder.

  • 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

Additional information

This lib will most likely help to (temporarily) resolve issues like:

mysterious dividers, spacing, one pixel line between, dividing lines occur, produces unwanted divider lines, small gap, lines between items, background color leaks, gaps between items

Libraries

space_fixer
ErlangParasu 2022