primaryButton method
Widget
primaryButton({
- required String label,
- required VoidCallback? onPressed,
- 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),
),
);
}