getMaterialButton function

TextButton getMaterialButton(
  1. String text,
  2. Color color,
  3. void onPressed()
)

Implementation

TextButton getMaterialButton(
  String text,
  Color color,
  void Function() onPressed,
) {
  return TextButton(
    child: Text(
      text,
      style: TextStyle(color: color),
    ),
    onPressed: onPressed,
  );
}