textButton method
A flat text-only action (e.g. "Resend OTP").
Implementation
Widget textButton({required String label, required VoidCallback? onPressed}) {
return TextButton(
onPressed: onPressed,
style: TextButton.styleFrom(
foregroundColor: theme.primary,
textStyle: linkStyle,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(buttonRadius),
),
),
child: Text(label),
);
}