FormAffixStyle.text constructor

const FormAffixStyle.text(
  1. String? label, {
  2. Widget? icon,
  3. Color? iconColor,
  4. BoxConstraints? iconConstraints,
  5. TextStyle? textStyle,
})

Class for defining prefix and suffix of text form.

If you want to place a widget, use FormAffixStyle, and if you want to display text as is, create an object with FormAffixStyle.text.

icon can be placed in front of each widget.

テキストフォームのprefix、suffixを定義するためのクラス。

Widgetを設置したい場合は、FormAffixStyleを利用し、テキストをそのまま表示したい場合はFormAffixStyle.textでオブジェクトを作成します。

iconをそれぞれのWidgetの前に設置することが可能です。

Implementation

const FormAffixStyle.text(
  this.label, {
  this.icon,
  this.iconColor,
  this.iconConstraints,
  this.textStyle,
}) : child = null;