CupertinoFormRowModifier constructor
Creates an iOS-style split form row with a standard prefix and child widget. Also provides a space for error and helper widgets that appear underneath.
The child parameter is required. This widget is displayed at the end of
the row.
The prefix parameter is optional and is displayed at the start of the
row. Standard iOS guidelines encourage passing a Text widget to prefix
to detail the nature of the row's child widget.
The padding parameter is used to pad the contents of the row. It defaults
to the standard iOS padding. If no edge insets are intended, explicitly
pass EdgeInsets.zero to padding.
The helper and error parameters are both optional widgets targeted at
displaying more information about the row. Both widgets are placed
underneath the prefix and child, and will expand the row's height to
accommodate for their presence. When a Text is given to error, it will
be shown in CupertinoColors.destructiveRed coloring and
medium-weighted font.
Implementation
const CupertinoFormRowModifier({
super.key,
super.child,
super.modifierKey,
this.prefix,
this.padding,
this.helper,
this.error,
});