Label constructor
const
Label(})
Widget for displaying labels used for item titles, etc.
Icons can be displayed in text and leading to give easy-to-understand labels.
Labels can also be decorated by adding backgroundColor and decoration.
項目のタイトルなどで使うラベルを表示するためのウィジェット。
textとleadingにアイコンを表示することでわかりやすいラベルを付与することができます。
また、backgroundColorやdecorationを追加することでラベルを装飾することが可能です。
Implementation
const Label(
this.text, {
super.key,
this.leading,
this.backgroundColor,
this.color,
this.padding,
this.decoration,
this.textStyle,
this.iconSize,
this.leadingSpace,
this.alignment,
this.textAlign = TextAlign.start,
this.actions = const [],
});