Indent constructor

const Indent({
  1. Key? key,
  2. required EdgeInsetsGeometry padding,
  3. required List<Widget> children,
  4. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
  5. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  6. MainAxisSize mainAxisSize = MainAxisSize.min,
  7. VerticalDirection verticalDirection = VerticalDirection.down,
})

A widget for setting padding between elements in a Column or ListView.

As is, multiple elements can be included with children, which improves the overall look.

You can set the padding with padding.

You can set how to place the child elements along the cross axis with crossAxisAlignment.

You can set how to place the child elements along the main axis with mainAxisAlignment.

You can set how much space to take along the main axis with mainAxisSize.

You can set the direction along the main axis to use with verticalDirection.

ColumnListViewの中で、要素の間にパディングを設定するためのウィジェット。

そのまま、childrenで複数の要素を含めることができるので、全体的な見栄えがよくなります。

paddingでパディングを設定できます。

crossAxisAlignmentで、子要素をクロス軸方向にどのように配置するかを設定できます。

mainAxisAlignmentで、子要素をメイン軸方向にどのように配置するかを設定できます。

mainAxisSizeで、メイン軸方向にどれだけのスペースを取るかを設定できます。

verticalDirectionで、メイン軸方向として使用する方向を設定できます。

Implementation

const Indent({
  super.key,
  required this.padding,
  required this.children,
  this.crossAxisAlignment = CrossAxisAlignment.start,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.mainAxisSize = MainAxisSize.min,
  this.verticalDirection = VerticalDirection.down,
});