sizedbox_extention 0.0.2 copy "sizedbox_extention: ^0.0.2" to clipboard
sizedbox_extention: ^0.0.2 copied to clipboard

A flutter package for creating space between widgets without have to write the SizedBox or Container widget.

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

3
likes
150
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package for creating space between widgets without have to write the SizedBox or Container widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on sizedbox_extention