spacer 1.0.0 copy "spacer: ^1.0.0" to clipboard
spacer: ^1.0.0 copied to clipboard

A set of widgets that simplifies adding space between UI elements.

Features #

A set of widgets that simplifies adding space between UI elements.

Getting started #

To add the package into your project, use the following command

 flutter pub add spacer

Usage #


//To add space vertically between UI elements
Height(double height)

//To add space horizontally between UI elements
Width(double width)

//To add space both vertically and horizontally between UI elements
Space(double space)

Example #


//Adds 100 logical pixels between the two icons
Row(
    children: [
        Icon(Icons.apps),
        Width(100),
        Icon(Icons.settings),
    ]
)

Additional information #

The package is actively maintained and therefore safe to use in a production environment.

2
likes
140
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

A set of widgets that simplifies adding space between UI elements.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on spacer