CupertinoFocusHalo.withRRect constructor
- required Widget child,
- required BorderRadiusGeometry borderRadius,
- Key? key,
Creates a rounded rectangular CupertinoFocusHalo around the child
For example, to highlight a rounded rectangular section of the widget tree when any button inside that section has focus, one could write:
CupertinoFocusHalo.withRRect(
borderRadius: BorderRadius.circular(10.0),
child: Column(
children: <Widget>[
CupertinoButton(child: const Text('Child 1'), onPressed: () {}),
CupertinoButton(child: const Text('Child 2'), onPressed: () {}),
],
),
)
Implementation
const CupertinoFocusHalo.withRRect({
required this.child,
required BorderRadiusGeometry borderRadius,
super.key,
}) : _borderRadius = borderRadius;