Flutter Newsletter Subscribe Card with Email Input

An email capture card for marketing sites and product pages: a gradient icon badge, a headline and reassurance copy, a real WInput email field (Wind's text input that works without a MaterialApp), a full-width subscribe button, and a social-proof footer. Dark-mode ready and styled entirely with Wind className strings.

Anılcan Çakır by Anılcan Çakır 6 views 0 stars 3 days ago Rev 1
Flutter Newsletter Subscribe Card with Email Input preview
main.dart
WDiv(
  className: 'flex flex-col gap-4 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-row items-center justify-center w-12 h-12 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.mail,
        className: 'text-xl text-white dark:text-white'
      ),
    ),
    WDiv(
      className: 'flex flex-col gap-1',
      children: [
        WText(
          'Stay in the loop',
          className: 'text-xl font-bold text-gray-900 dark:text-white'
        ),
        WText(
          'Product updates and Flutter tips, twice a month. No spam, unsubscribe anytime.',
          className: 'text-sm leading-relaxed text-gray-500 dark:text-gray-400'
        ),
      ],
    ),
    WInput(
      type: "email",
      placeholder: "Enter your email",
      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',
    ),
    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(
            'Subscribe',
            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-2',
      children: [
        WIcon(
          Icons.check,
          className: 'text-sm text-emerald-500 dark:text-emerald-400'
        ),
        WText(
          'Joined by 12,000+ developers',
          className: 'text-xs text-gray-400 dark:text-gray-500'
        ),
      ],
    ),
  ],
)
Stats
Views
6
Stars
0
Revisions
1
Size
2,027 chars
Created
Jun 21, 2026