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 SizedBox(
    height: buttonHeight,
    width: double.infinity,
    child: DecoratedBox(
      decoration: BoxDecoration(
        color: _ink,
        borderRadius: BorderRadius.circular(_r),
      ),
      child: buttonInk(
        onPressed: loading ? null : onPressed,
        radius: _r,
        child: loading
            ? buttonLabel(label, true, theme.surface)
            : Text(
                label.toUpperCase(),
                style: TextStyle(
                  fontFamily: fontFamily,
                  fontSize: 13,
                  letterSpacing: 2,
                  fontWeight: FontWeight.w500,
                  color: theme.surface,
                ),
              ),
      ),
    ),
  );
}