Skip to content

Latest commit

 

History

History
88 lines (67 loc) · 2.48 KB

README.md

File metadata and controls

88 lines (67 loc) · 2.48 KB

Space Fixer

Features

  • Hide 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 (widget to hide unexpected gap)

Usage

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

Additional information

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.

Links