İçeriğe geç
English
Tüm örnekler

Flutter Sign In Card with Social Login

A Flutter sign-in card with email and password fields, a forgot-password link, a primary sign-in button and a Google social login below an or-continue divider. Built with wind_kit WInput, which works without a MaterialApp, styled by className strings with dark mode included.

  • WDiv
  • WIcon
  • WText
  • WInput
  • WButton
önizleme
3wiewj02.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'
        ),
      ],
    ),
  ],
)
  • Öne çıkan

    Doğrulamalı e-posta alanı

    Doğrulayıcısı, odak halkası ve error: kenarlığı olan bir form girdisi.

    • WFormInput
  • Flutter Password Strength Card with Requirement Checklist

    A sign-up password step that scores strength on a four segment meter, ticks off each requirement live, and confirms the password is not in a known breach list. Built with Wind className utilities and a real WInput field.

    • WDiv
    • WIcon
    • WText
    • WInput
    • WButton
  • Flutter File Upload Card with Progress Bars

    A file upload card with a drag-and-drop zone and per-file progress bars showing uploading and completed states. Styled with Tailwind-style Wind classes and dark-mode support.

    • WDiv
    • WText
    • WButton
    • WIcon