Skip to content
This repository was archived by the owner on May 7, 2023. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pad

pub package

Quick padding for Flutter with a short syntax. Instead of:

const Padding(padding: EdgeInsets.only(top: 10.0))

You can use:

const PadTop(10.0)

Usage

Directional padding

const Pad(
   bottom: 10.0,
   top: 10.0,
   left: 10.0,
   right: 10.0,
   child: Text("Foo")
)

All parameters are optional

Pad left

const PadLeft(10.0, child: Text("Foo"))

Pad right

const PadRight(10.0, child: Text("Foo"))

Pad top

const PadTop(10.0, child: Text("Foo"))

Pad bottom

const PadBottom(10.0, child: Text("Foo"))

Pad horizontal

const PadHorizontal(10.0, child: Text("Foo"))

Pad vertical

const PadVertical(10.0, child: Text("Foo"))

Pad all

const PadAll(10.0, child: Text("Foo"))

Pad from LTRB

const PadLTRB(
   10.0,
   15.0,
   10.0,
   15.0,
   child: Text("Foo")
)

About

Quick padding for Flutter

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages