FormLabel constructor

const FormLabel(
  1. String label, {
  2. Key? key,
  3. IconData? icon,
  4. Color? color,
  5. Widget? prefix,
  6. Widget? suffix,
  7. Widget? notice,
  8. bool showDivider = true,
})

Displays the label for each item on the form.

Pass the text to be displayed to label.

By specifying icon, an icon is displayed before label.

You can change the color of label and icon by specifying color.

If prefix and suffix are specified, widgets can be placed before and after the dividing line.

フォームの各項目のラベルを表示します。

labelに表示するテキストを渡します。

iconを指定することでlabelの前にアイコンが表示されます。

colorを指定するとlabeliconの色を変えることができます。

prefixsuffixを指定すると分断線の前後にWidgetを配置することができます。

Implementation

const FormLabel(
  this.label, {
  super.key,
  this.icon,
  this.color,
  this.prefix,
  this.suffix,
  this.notice,
  this.showDivider = true,
});