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 _NeuPressable(
base: _base,
light: _light,
dark: _dark,
radius: buttonRadius,
height: buttonHeight,
onTap: loading ? null : onPressed,
child: buttonLabel(label, loading, theme.primary),
);
}