auto_spacing 0.0.7 copy "auto_spacing: ^0.0.7" to clipboard
auto_spacing: ^0.0.7 copied to clipboard

Auto spacing is designed to automatically gives space between widgets.

AutoSpacing is a Flutter widget that automatically adapts to the layout it's used in. Whether you're arranging widgets in a Column, Row or in a ListView, AutoSpacing effortlessly adds the space between your widgets, making your UI design cleaner and more efficient. It's a versatile and time-saving tool for Flutter developers, designed to streamline widget spacing without the hassle of manually determining vertical or horizontal spacing.

Features #

  • Automatically adjusts spacing based on layout whether it's in a Column or Row or ListView.
  • Simplifies layout by removing the need to manually set heights or widths, saving your time and effort.
  • Customizable spacing size to suit your design.
  • Simple and light.

Getting started #

Import

    import 'package:auto_spacing/auto_spacing.dart';

Usage #

Row
(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('first text in a row'),
const Space(),
Text('second text in a row'),
],
)

or

Column
(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
color: Colors.red,
height: 100,
width: 100,
),
const Space(20),
Container(
color: Colors.blue,
height: 100,
width: 100,
),
]
,
)

Buy Me A Coffee

Additional information #

Developer: Baqar Naqvi Email: naqvibaqar74@gmail.com

2
likes
150
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

Auto spacing is designed to automatically gives space between widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on auto_spacing