v0.0.8
equal_space
Ein Flutter-Paket zum Erstellen gleichmäßig abgestimmter Zeilen und Spalten.
11Likes 3630-Tage-Downloads160Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
RanaSharjeelShji/equal_space open-source repository details.
{"sdk":"flutter"}{"sdk":"flutter"}^3.0.0Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
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.
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SpacedColumn(
space: 26.0,
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.end,
textDirection: TextDirection.rtl,
verticalDirection: VerticalDirection.down,
textBaseline: TextBaseline.alphabetic,
children: [
Container(width: 50, height: 50, color: Colors.red),
Container(width: 50, height: 50, color: Colors.green),
Container(width: 50, height: 50, color: Colors.blue),
],
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SpacedRow(
space: 26.0,
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.end,
textDirection: TextDirection.rtl,
verticalDirection: VerticalDirection.down,
textBaseline: TextBaseline.alphabetic,
children: [
Container(width: 50, height: 50, color: Colors.red),
Container(width: 50, height: 50, color: Colors.green),
Container(width: 50, height: 50, color: Colors.blue),
],
);
}
}
flutter pub add equal_space
import 'package:equal_space/equal_space.dart';
space.SpacedRow and SpacedColumn widgets shows how effective this package is.