Skip to content
Türkçe
All snippets

A vocabulary dashboard that makes the review queue feel manageable

Separate due words from new vocabulary and show a five-minute session before learners commit. An unequal bento layout keeps the next review prominent, with WButton tabs ready for app navigation.

  • WDiv
  • WText
  • WIcon
  • WButton
preview
a_vocabulary_dashboard_that_makes_the_re_vho89w.dart
WDiv(
  className: '''
    w-full px-3 py-6
    flex flex-col gap-2
    bg-zinc-950 dark:bg-zinc-950
  ''',
  children: [
    WDiv(className: 'flex flex-col px-1 pb-3', children: [
      WText('Your word bank', className: '''
        text-2xl font-bold
        text-white dark:text-white
      '''),
      WText('Spanish · Wed 25 Nov', className: 'text-sm text-zinc-400 dark:text-zinc-400'),
    ]),
    WDiv(className: 'flex flex-row gap-2', children: [
      WDiv(className: '''
        flex-1 h-66 p-4 rounded-2xl
        flex flex-col justify-between
        bg-orange-500 dark:bg-orange-500
      ''', children: [
        WIcon(Icons.school, className: 'size-8 text-zinc-950 dark:text-zinc-950'),
        WDiv(className: 'flex flex-col gap-1', children: [
          WText('Ready to review', className: 'text-xs text-zinc-950 dark:text-zinc-950'),
          WText('18 words', className: '''
            text-3xl font-bold
            text-zinc-950 dark:text-zinc-950
          '''),
          WText('Keep them familiar', className: 'text-xs text-zinc-950 dark:text-zinc-950'),
        ]),
      ]),
      WDiv(className: 'flex-1 flex flex-col gap-2', children: [
        WDiv(className: '''
          h-32 p-4 rounded-2xl
          flex flex-col justify-between
          bg-zinc-800 dark:bg-zinc-800
        ''', children: [
          WText('New discoveries', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
          WText('6 words', className: '''
            text-3xl font-bold
            text-white dark:text-white
          '''),
        ]),
        WDiv(className: '''
          h-32 p-4 rounded-2xl
          flex flex-col justify-between
          bg-zinc-800 dark:bg-zinc-800
        ''', children: [
          WText('Recall · last 7 days', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
          WText('92%', className: '''
            text-3xl font-bold
            text-white dark:text-white
          '''),
        ]),
      ]),
    ]),
    WDiv(className: '''
      h-24 px-4 rounded-2xl
      flex flex-col justify-center
      bg-zinc-800 dark:bg-zinc-800
    ''', children: [
      WText('Quick session · 12 due words', className: 'text-xs text-zinc-400 dark:text-zinc-400'),
      WText('5 minutes', className: '''
        text-3xl font-bold
        text-white dark:text-white
      '''),
    ]),
    WDiv(className: '''
      flex flex-row gap-1
      mt-3 p-1 rounded-2xl
      bg-zinc-900 dark:bg-zinc-900
    ''', children: [
      WButton(onTap: () {}, className: '''
        w-28 h-11 rounded-xl
        flex items-center justify-center
        bg-zinc-700 dark:bg-zinc-700
        hover:bg-zinc-600 dark:hover:bg-zinc-600
        focus:ring-2 focus:ring-orange-500 dark:focus:ring-orange-500
        disabled:opacity-50
      ''', child: WText('Review', className: 'text-sm text-white dark:text-white')),
      WButton(onTap: () {}, className: '''
        w-28 h-11 rounded-xl
        flex items-center justify-center
        hover:bg-zinc-800 dark:hover:bg-zinc-800
        focus:ring-2 focus:ring-orange-500 dark:focus:ring-orange-500
        disabled:opacity-50
      ''', child: WText('Saved', className: 'text-sm text-zinc-400 dark:text-zinc-400')),
      WButton(onTap: () {}, className: '''
        w-28 h-11 rounded-xl
        flex items-center justify-center
        hover:bg-zinc-800 dark:hover:bg-zinc-800
        focus:ring-2 focus:ring-orange-500 dark:focus:ring-orange-500
        disabled:opacity-50
      ''', child: WText('Progress', className: 'text-sm text-zinc-400 dark:text-zinc-400')),
    ]),
  ],
)
  • A screen-time stop that meets you at your daily limit

    Make the daily scrolling limit a moment to act, not another report to ignore. A full-colour stop sign with four oversized lines and one clear exit, built with WButton.

    • WDiv
    • WIcon
    • WText
    • WButton
  • A speaking warm-up that turns cafe nerves into a first sentence

    Give learners a real scene, a useful opening line and a low-pressure way to speak. A warm cafe roleplay card with a phrase preview and a clear three-minute commitment, built around WCard.

    • WDiv
    • WIcon
    • WText
    • WBadge
    • WCard
    • WSpacer
    • WButton
  • A focus shield that makes the rules clear before you start

    Protect a work session without hiding the escape hatch. A warm hero, explicit blocked categories and always-available essentials make a focus commitment easy to trust. Built with WCard and a clear start action.

    • WDiv
    • WIcon
    • WText
    • WBadge
    • WCard
    • WButton