statusText method
Widget
statusText(
- String text, {
- bool error = false,
- TextAlign? align,
- Color? color,
- FontWeight? weight,
Countdown / expiry line under the OTP boxes. error switches to the
red "OTP expired…" look; color overrides the text colour (the
expiry label shifts blue → amber → red as time runs out).
Implementation
Widget statusText(
String text, {
bool error = false,
TextAlign? align,
Color? color,
FontWeight? weight,
}) {
return Text(
text,
textAlign: align ?? TextAlign.center,
style: TextStyle(
fontFamily: fontFamily,
fontSize: 13,
fontWeight: weight,
color: color ?? (error ? const Color(0xFFD8000C) : theme.primary),
),
);
}