space_fixer 0.1.1 space_fixer: ^0.1.1 copied to clipboard
space_fixer Hide unwanted/unexpected gap between widgets.
Space Fixer #
Features #
- Hide unwanted/unexpected gap between widgets
Getting started #
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
- https://github.com/flutter/flutter/issues/14288
- https://github.com/flutter/flutter/issues/15035
- https://github.com/flutter/flutter/issues/29702
- https://github.com/flutter/flutter/issues/37168
- https://github.com/flutter/flutter/issues/39815
- https://github.com/flutter/flutter/issues/42927
- https://github.com/flutter/flutter/issues/44008
- https://github.com/flutter/flutter/issues/46604
- https://github.com/flutter/flutter/issues/54370
- https://github.com/flutter/flutter/issues/58462
- https://github.com/flutter/flutter/issues/58951
- https://github.com/flutter/flutter/issues/62818