primaryButton method
Widget
primaryButton({
- required String label,
- required VoidCallback? onPressed,
- bool loading = false,
The main "Verify" button.
Implementation
Widget primaryButton({
required String label,
required VoidCallback? onPressed,
bool loading = false,
}) {
return SizedBox(
height: buttonHeight,
width: double.infinity,
child: DecoratedBox(
decoration: BoxDecoration(
color: theme.buttonColor,
borderRadius: BorderRadius.circular(buttonRadius),
border: Border.all(color: theme.buttonBorderColor),
),
child: buttonInk(
onPressed: loading ? null : onPressed,
radius: buttonRadius,
child: buttonLabel(label, loading, theme.buttonTextColor),
),
),
);
}