auto_spacing 0.0.1 auto_spacing: ^0.0.1 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 or in a Row, 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 whether it's in a
Column
orRow
. - 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: [
Container(
color: Colors.red,
height: 100,
width: 100,
),
const AutoSpacing(),
Container(
color: Colors.blue,
height: 100,
width: 100,
),
],
)
or
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
color: Colors.red,
height: 100,
width: 100,
),
const AutoSpacing(20),
Container(
color: Colors.blue,
height: 100,
width: 100,
),
],
)
Additional information #
Developer: Baqar Naqvi Github: https://github.com/baqar72/auto_spacing