disabled static method

ButtonStyle disabled({
  1. double radius = 12,
  2. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 20, vertical: 14),
})

Disabled style (for preview or manual styling)

Implementation

static ButtonStyle disabled({
  double radius = 12,
  EdgeInsetsGeometry padding = const EdgeInsets.symmetric(
    horizontal: 20,
    vertical: 14,
  ),
}) {
  return ElevatedButton.styleFrom(
    backgroundColor: Colors.grey.shade300,
    foregroundColor: Colors.grey.shade600,
    padding: padding,
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(radius),
    ),
  );
}