https://github.com/erlangparasu/space_fixer
space_fixer: Hide unexpected gap between widgets
https://github.com/erlangparasu/space_fixer
clip dart flutter pub stack
Last synced: 4 months ago
JSON representation
space_fixer: Hide unexpected gap between widgets
- Host: GitHub
- URL: https://github.com/erlangparasu/space_fixer
- Owner: erlangparasu
- License: bsd-3-clause
- Created: 2022-01-28T14:15:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-08T08:30:10.000Z (over 3 years ago)
- Last Synced: 2025-03-19T21:45:53.982Z (10 months ago)
- Topics: clip, dart, flutter, pub, stack
- Language: Dart
- Homepage: https://pub.dev/packages/space_fixer
- Size: 117 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Space Fixer
## Features
- Hide 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` (widget to hide unexpected gap)
## Usage
```bash
flutter pub add space_fixer
```
```dart
import 'package:space_fixer/space_fixer.dart';
```
- `SpaceFixerHorizontalLine()`
- `SpaceFixerVerticalLine()`
```dart
// ...
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](example/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.
- 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
## Links
- https://github.com/erlangparasu/space_fixer
- https://pub.dev/packages/space_fixer