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.

Libraries

spacer