darkGrayBox method

ColoredBox darkGrayBox()

Wraps the widget in a ColoredBox with dark background gray color.

Uses CupertinoColors.darkBackgroundGray which provides a dark gray background suitable for dark mode interfaces or secondary backgrounds.

Returns a ColoredBox containing the current widget with dark gray background.

Example:

Container(child: Text('Dark Section')).darkGrayBox()

Implementation

ColoredBox darkGrayBox() => coloredBox(CupertinoColors.darkBackgroundGray);