FormLabel class

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を配置することができます。

Inheritance
Available Extensions

Constructors

FormLabel(String label, {Key? key, IconData? icon, Color? color, Widget? prefix, Widget? suffix, Widget? notice, bool showDivider = true})
Displays the label for each item on the form.
const

Properties

color Color?
Change the color of label and icon.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Display the icon in front of label.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
Form labels.
final
notice Widget?
Widget for annotations. It appears after the label.
final
prefix Widget?
Widget displayed before the dividing line.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDivider bool
true if you want to display the separator line.
final
suffix Widget?
Widget displayed after the dividing line.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited