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.

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

Libraries

auto_spacing