wellAction method

Widget wellAction({
  1. Alignment? alignment = Alignment.center,
  2. Color? fillColor,
  3. double fillOpacity = 0.4,
  4. Color? hoverColor,
  5. double radius = 4,
  6. VoidCallback? onTap,
})

Implementation

Widget wellAction({Alignment? alignment = Alignment.center, Color? fillColor, double fillOpacity = 0.4, Color? hoverColor, double radius = 4, VoidCallback? onTap}) {
  Widget w = this;
  if (alignment != null) w = w.align(alignment);
  Color fc = fillColor ?? (globalContext.isDark ? Colors.grey[700]! : Colors.grey[400]!);
  w = w.roundRect(fillColor: fc.withOpacityX(fillOpacity), radius: radius);

  Color h = globalTheme.colorScheme.primary.withAlpha(125);
  return w.inkWell(hoverColor: hoverColor ?? h, borderRadius: BorderRadius.circular(radius), onTap: onTap);
}