0 purchases
auto spacing
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';
copied to clipboard
Usage #
Row
(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('first text in a row'),
const Space(),
Text('second text in a row'),
],
)
copied to clipboard
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,
),
]
,
)
copied to clipboard
Additional information #
Developer: Baqar Naqvi
Email: [email protected]
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.