otpAuth static method
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,
);
}