build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Build the widget.

Implementation

@override
Widget build(final BuildContext context) => Expanded(
  child: Semantics(
    excludeSemantics: true,
    inMutuallyExclusiveGroup: true,
    label: description,
    child: Stack(
      children: [
        GestureDetector(
          onPanDown: (final details) => onTouch.call(TouchAreaEvent.touch),
          onPanEnd: (final details) => onTouch.call(TouchAreaEvent.release),
        ),
        IgnorePointer(child: child ?? Text(description)),
      ],
    ),
  ),
);