profileSetup static method

Widget profileSetup({
  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 = 500,
  9. EdgeInsetsGeometry? padding,
})

Implementation

static Widget profileSetup({
  required Widget form,
  String? title,
  String? subtitle,
  Widget? headerWidget,
  Widget? footerWidget,
  Gradient? backgroundGradient,
  Widget? logoWidget,
  double maxWidth = 500,
  EdgeInsetsGeometry? padding,
}) {
  return AtomicAuthTemplate(
    title: title ?? 'Complete Profile',
    subtitle: subtitle ?? 'Tell us more about yourself',
    headerWidget: headerWidget,
    footerWidget: footerWidget,
    backgroundGradient: backgroundGradient ?? const LinearGradient(
      colors: [
        Color(0xFF8360c3),
        Color(0xFF2ebf91),
      ],
      begin: Alignment.topLeft,
      end: Alignment.bottomRight,
    ),
    logoWidget: logoWidget ?? const Icon(
      Icons.account_circle,
      size: 48,
      color: Colors.white,
    ),
    maxWidth: maxWidth,
    padding: padding,
    scrollable: true, // Profile forms are usually longer
    child: form,
  );
}