makeAction method

Widget makeAction(
  1. String label,
  2. VoidCallback onTap, {
  3. Color? color,
})

Implementation

Widget makeAction(String label, VoidCallback onTap, {Color? color}) {
  if (color != null) {
    return StadiumElevatedButton(child: label.text(), onPressed: onTap, fillColor: color).constrainedBox(minWidth: ACTION_MIN_WIDTH);
  }
  return StadiumOutlinedButton(child: label.text(), onPressed: onTap).constrainedBox(minWidth: ACTION_MIN_WIDTH);
}