YaruOptionButton.color constructor

YaruOptionButton.color({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. FocusNode? focusNode,
  4. bool autofocus = false,
  5. ButtonStyle? style,
  6. required Color color,
})

Creates a YaruOptionButton with a color disk.

Implementation

YaruOptionButton.color({
  super.key,
  required super.onPressed,
  super.focusNode,
  super.autofocus = false,
  ButtonStyle? style,
  required Color color,
}) : super(
        style: _styleFrom(padding: const EdgeInsets.all(10)).merge(style),
        child: SizedBox.expand(
          child: DecoratedBox(
            decoration: BoxDecoration(color: color, shape: BoxShape.circle),
          ),
        ),
      );