statusText method

Widget statusText(
  1. String text, {
  2. bool error = false,
  3. TextAlign? align,
  4. Color? color,
  5. 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),
    ),
  );
}