xTabText method

Widget xTabText (
  1. {Key key,
  2. Widget child,
  3. Widget icon,
  4. EdgeInsetsGeometry iconMargin}
)

The widget to be used as the tab's label.

Usually a Text widget, possibly wrapped in a Semantics widget.

Must not be used in combination with text.

Implementation

Widget xTabText({
  final Key key,

  /// The text to display as the tab's label.
  ///
  /// Must not be used in combination with [child].
  final Widget child,

  /// An icon to display as the tab's label.
  final Widget icon,

  /// The margin added around the tab's icon.
  ///
  /// Only useful when used in combination with [icon], and either one of
  /// [text] or [child] is non-null.
  final EdgeInsetsGeometry iconMargin,
}) {
  return Tab(
    icon: icon,
    key: key,
    text: this,
    iconMargin: iconMargin,
    child: child,
  );
}