login static method
Implementation
static Widget login({
required Widget form,
String? title,
String? subtitle,
Widget? headerWidget,
Widget? footerWidget,
Gradient? backgroundGradient,
Widget? logoWidget,
double maxWidth = 400,
EdgeInsetsGeometry? padding,
}) {
return AtomicAuthTemplate(
title: title ?? 'Welcome Back',
subtitle: subtitle ?? 'Sign in to your account',
headerWidget: headerWidget,
footerWidget: footerWidget,
backgroundGradient: backgroundGradient ?? const LinearGradient(
colors: [
Color(0xFF667eea),
Color(0xFF764ba2),
],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
),
logoWidget: logoWidget ?? const Icon(
Icons.person,
size: 48,
color: Colors.white,
),
maxWidth: maxWidth,
padding: padding,
child: form,
);
}