FormAffixStyle.text constructor
const
FormAffixStyle.text(
- String? label, {
- Widget? icon,
- Color? iconColor,
- BoxConstraints? iconConstraints,
- 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;