An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Space Fixer

## Features

- Hide unexpected gap between widgets

## Getting started

How It Works

![Screenshot How It Works](images/space_fixer.ss.jpg?raw=true "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

```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