v0.0.8
equal_space
均等な間隔の行と列を作成するためのFlutterパッケージ。
11いいね 3630日間ダウンロード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.