v0.0.8
equal_space
一個用於建立均勻間距列和欄的Flutter套件。
11喜歡 36近 30 天下載160Pub 分數
AndroidiOSWebmacOSWindowsLinux
RanaSharjeelShji/equal_space open-source repository details.
{"sdk":"flutter"}{"sdk":"flutter"}^3.0.0以下為英文專案原文快照,最新內容請造訪 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.