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 SizedBox(
height: buttonHeight,
width: double.infinity,
child: _frosted(
fill: theme.buttonColor,
radius: buttonRadius,
shadow: BoxShadow(
color: theme.buttonColor.withValues(alpha: 0.25),
blurRadius: 16,
offset: const Offset(0, 6),
),
child: buttonInk(
onPressed: loading ? null : onPressed,
radius: buttonRadius,
child: buttonLabel(label, loading, theme.buttonTextColor),
),
),
);
}