sizedbox_extention 0.0.2
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
After Package
Features #
Add spacing between your widgets
Getting started #
- Add dependency to pubspec.yaml
Get the latest version in the 'Installing' tab on pub.dev
dependencies:
sizedbox_extention: <latest-version>
- Import the package
import 'package:sizedbox_extention/sizedbox_extention.dart';
- 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