otpAuth static method

Widget otpAuth({
  1. required Widget form,
  2. String? title,
  3. String? subtitle,
  4. Widget? headerWidget,
  5. Widget? footerWidget,
  6. Gradient? backgroundGradient,
  7. Widget? logoWidget,
  8. double maxWidth = 400,
  9. EdgeInsetsGeometry? padding,
})

Implementation

static Widget otpAuth({
  required Widget form,
  String? title,
  String? subtitle,
  Widget? headerWidget,
  Widget? footerWidget,
  Gradient? backgroundGradient,
  Widget? logoWidget,
  double maxWidth = 400,
  EdgeInsetsGeometry? padding,
}) {
  return AtomicAuthTemplate(
    title: title ?? 'Secure Access',
    subtitle: subtitle ?? 'Enter your email to receive verification code',
    headerWidget: headerWidget,
    footerWidget: footerWidget,
    backgroundGradient: backgroundGradient ?? const LinearGradient(
      colors: [
        Color(0xFF667eea),
        Color(0xFF764ba2),
      ],
      begin: Alignment.topLeft,
      end: Alignment.bottomRight,
    ),
    logoWidget: logoWidget ?? const Icon(
      Icons.security,
      size: 48,
      color: Colors.white,
    ),
    maxWidth: maxWidth,
    padding: padding,
    child: form,
  );
}