primaryButton method

  1. @override
Widget primaryButton({
  1. required String label,
  2. required VoidCallback? onPressed,
  3. bool loading = false,
})
override

The main "Verify" button.

Implementation

@override
Widget primaryButton({
  required String label,
  required VoidCallback? onPressed,
  bool loading = false,
}) {
  return _clayBox(
    color: theme.buttonColor,
    radius: buttonRadius,
    height: buttonHeight,
    child: buttonInk(
      onPressed: loading ? null : onPressed,
      radius: buttonRadius,
      child: buttonLabel(label, loading, theme.buttonTextColor),
    ),
  );
}