equal_space 0.0.3
equal_space: ^0.0.3 copied to clipboard
A Flutter package for creating evenly spaced rows and columns.
Equal Space #
Equal Space is a Flutter package that allows you stop using SizedBox for spacing between widgets. it simplifies the process of creating evenly spaced rows and columns in your Flutter applications. This package provides custom widgets, SpacedRow and SpacedColumn, which make it easy to manage spacing and alignment of child widgets.
Features #
- Customizable Spacing: Easily adjust the space between child widgets.
- Flexible Alignment: Support for main axis and cross axis alignment.
- Simplified Code: Reduces boilerplate code for spacing in rows and columns.
SpacedColumn Example #
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SpacedColumn(
space: 16.0,
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(Icons.star, size: 50),
Icon(Icons.star, size: 50),
Icon(Icons.star, size: 50),
],
);
}
}
SpacedRow Example #
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SpacedRow(
space: 16.0,
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Icon(Icons.star, size: 50),
Icon(Icons.star, size: 50),
Icon(Icons.star, size: 50),
],
);
}
}
Installation #
flutter pub add equal_space
import 'package:equal_space/equal_space.dart';
Explanation #
- Overview: Brief introduction to the package.
- Features: Highlights key features of the package.
- Installation: Instructions for adding the package to a Flutter project.
- Usage: Examples of how to use the
SpacedRowandSpacedColumnwidgets. - Example: Instructions to run the example app.
- Contributions: Invitation for contributions and how to contribute.
- License: License information.
- Connect with Us: Click below to visit my YouTube channel & Github.

.png?raw=true)