yellowBox method

ColoredBox yellowBox()

Wraps the widget in a ColoredBox with system yellow color.

Uses CupertinoColors.systemYellow which adapts to light/dark mode. This is the standard yellow color used throughout iOS interfaces, commonly used for warnings or attention-grabbing elements.

Returns a ColoredBox containing the current widget with yellow background.

Example:

Icon(CupertinoIcons.exclamationmark_triangle).yellowBox()

Implementation

ColoredBox yellowBox() => coloredBox(CupertinoColors.systemYellow);