sizedbox_extention

A Flutter package allows you to put empty space between widgets without using a Container or SizedBox widget.

Preview

Before Package Image

After Package Image

Features

Add spacing between your widgets

Getting started

  1. Add dependency to pubspec.yaml

Get the latest version in the 'Installing' tab on pub.dev

dependencies:
    sizedbox_extention: <latest-version>
  1. Import the package
import 'package:sizedbox_extention/sizedbox_extention.dart';

  1. Adding a sizedbox_extention widget.
//For height Spacing 
Column(
              children: [
                Container(
                  height: 100,
                  width: double.infinity,
                  color: Colors.red,
                ),
                50.height,
                Container(
                  height: 100,
                  width: double.infinity,
                  color: Colors.yellow,
                ),
                30.height,
                Container(
                  height: 100,
                  width: double.infinity,
                  color: Colors.green,
                ),
              ],
            ),


//For width Spacing 
Row(
              children: [
                Container(
                  width: 100,
                  height: double.infinity,
                  color: Colors.orange,
                ),
                60.width,
                Container(
                  width: 100,
                  height: double.infinity,
                  color: Colors.brown,
                ),
                30.width,
                Container(
                  width: 100,
                  height: double.infinity,
                  color: Colors.black,
                ),
              ],
            )

How to use

Check out the example app in the example directory or the 'Example' tab on pub.dartlang.org for a more complete example.

Additional information

Wana know how this was done check this out

Libraries

sizedbox_extention