Flutter Sign In Card with Social Login

A polished authentication card built with real WInput text fields, Wind's text input that works without a MaterialApp: a brand mark, an email field, a masked password field with a forgot-password link, a primary sign-in action, and a Google social-login option below an or-continue divider. Dark-mode ready and styled entirely with Wind className strings.

Anılcan Çakır by Anılcan Çakır 12 views 0 stars 5 days ago Rev 2
Flutter Sign In Card with Social Login preview
main.dart
WDiv(
  className: 'flex flex-col gap-5 w-full max-w-sm p-6 rounded-3xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 shadow-xl',
  children: [
    WDiv(
      className: 'flex flex-col items-center gap-3',
      children: [
        WDiv(
          className: 'flex flex-row items-center justify-center w-14 h-14 rounded-2xl bg-gradient-to-br from-indigo-500 to-violet-600 dark:from-indigo-600 dark:to-violet-700 shadow-lg',
          child: WIcon(
            Icons.bolt,
            className: 'text-2xl text-white dark:text-white'
          ),
        ),
        WText(
          'Welcome back',
          className: 'text-2xl font-bold text-gray-900 dark:text-white'
        ),
        WText(
          'Sign in to continue to Nimbus',
          className: 'text-sm text-gray-500 dark:text-gray-400'
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-col gap-1.5',
      children: [
        WText(
          'Email',
          className: 'text-xs font-semibold text-gray-600 dark:text-gray-300'
        ),
        WInput(
          value: "[email protected]",
          type: "email",
          placeholder: "[email protected]",
          className: 'w-full px-4 py-3 rounded-xl border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800 text-sm text-gray-700 dark:text-gray-200',
        ),
      ],
    ),
    WDiv(
      className: 'flex flex-col gap-1.5',
      children: [
        WDiv(
          className: 'flex flex-row items-center justify-between w-full',
          children: [
            WText(
              'Password',
              className: 'text-xs font-semibold text-gray-600 dark:text-gray-300'
            ),
            WText(
              'Forgot?',
              className: 'text-xs font-semibold text-indigo-600 dark:text-indigo-400'
            ),
          ],
        ),
        WInput(
          value: "nimbus2024",
          type: "password",
          placeholder: "Enter your password",
          className: 'w-full px-4 py-3 rounded-xl border-2 border-indigo-500 dark:border-indigo-400 bg-white dark:bg-gray-800 text-sm text-gray-700 dark:text-gray-200',
        ),
      ],
    ),
    WButton(
      className: 'flex flex-row items-center justify-center gap-2 w-full py-3 rounded-xl bg-indigo-600 dark:bg-indigo-500 shadow-lg',
      child: WDiv(
        className: 'flex flex-row items-center justify-center gap-2',
        children: [
          WText(
            'Sign In',
            className: 'text-sm font-semibold text-white dark:text-white'
          ),
          WIcon(
            Icons.arrow_forward,
            className: 'text-base text-white dark:text-white'
          ),
        ],
      ),
    ),
    WDiv(
      className: 'flex flex-row items-center justify-center gap-3 w-full',
      children: [
        WDiv(
          className: 'w-16 h-px bg-gray-200 dark:bg-gray-700'
        ),
        WText(
          'or continue with',
          className: 'text-xs text-gray-400 dark:text-gray-500'
        ),
        WDiv(
          className: 'w-16 h-px bg-gray-200 dark:bg-gray-700'
        ),
      ],
    ),
    WButton(
      className: 'flex flex-row items-center justify-center gap-2 w-full py-3 rounded-xl border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800',
      child: WDiv(
        className: 'flex flex-row items-center justify-center gap-2',
        children: [
          WDiv(
            className: 'flex flex-row items-center justify-center w-5 h-5 rounded-full bg-gradient-to-br from-sky-400 to-rose-500 dark:from-sky-400 dark:to-rose-500',
            child: WText(
              'G',
              className: 'text-xs font-bold text-white dark:text-white'
            ),
          ),
          WText(
            'Continue with Google',
            className: 'text-sm font-semibold text-gray-700 dark:text-gray-200'
          ),
        ],
      ),
    ),
    WDiv(
      className: 'flex flex-row items-center justify-center gap-1 w-full',
      children: [
        WText(
          'New here?',
          className: 'text-xs text-gray-500 dark:text-gray-400'
        ),
        WText(
          'Create an account',
          className: 'text-xs font-semibold text-indigo-600 dark:text-indigo-400'
        ),
      ],
    ),
  ],
)
Stats
Views
12
Stars
0
Revisions
2
Size
4,278 chars
Created
Jun 19, 2026