auto_spacing 0.0.1 copy "auto_spacing: ^0.0.1" to clipboard
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 or Row.
  • 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,
  ),
 ],
)

Buy Me A Coffee

Additional information #

Developer: Baqar Naqvi Github: https://github.com/baqar72/auto_spacing

2
likes
0
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

Auto spacing is designed to automatically gives space between widgets.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on auto_spacing