Flutter Language Learning Flashcard
A clean vocabulary flashcard with a language badge, XP reward, the target word with its phonetic spelling, a translation row with an audio control, and review actions. An e-learning pattern built with Tailwind-style className utilities in Flutter.
main.dart
WDiv(
className: 'mx-auto max-w-sm flex flex-col gap-5 rounded-3xl p-6 bg-white shadow-xl dark:bg-gray-900',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center gap-2 rounded-full px-3 py-1 bg-rose-50 dark:bg-rose-950',
children: [
WDiv(
className: 'flex items-center justify-center w-6 h-6 rounded-full bg-rose-500 dark:bg-rose-500',
child: WText(
'ES',
className: 'text-xs font-bold text-white'
),
),
WText(
'Spanish',
className: 'text-xs font-semibold text-rose-700 dark:text-rose-300'
),
],
),
WDiv(
className: 'flex flex-row items-center gap-1 rounded-full px-3 py-1 bg-amber-50 dark:bg-amber-950',
children: [
WIcon(
Icons.bolt,
className: 'text-amber-500 text-sm dark:text-amber-400'
),
WText(
'+10 XP',
className: 'text-xs font-bold text-amber-700 dark:text-amber-300'
),
],
),
],
),
WDiv(
className: 'flex flex-col gap-1',
children: [
WText(
'Mariposa',
className: 'text-4xl font-extrabold text-gray-900 dark:text-white'
),
WDiv(
className: 'flex flex-row items-center gap-2',
children: [
WText(
'/ma.ri.po.sa/',
className: 'text-sm font-medium text-gray-400 dark:text-gray-500'
),
WText(
'noun',
className: 'text-xs font-semibold text-indigo-500 dark:text-indigo-400'
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full rounded-2xl p-3 bg-gray-50 dark:bg-gray-800',
children: [
WDiv(
className: 'flex flex-col',
children: [
WText(
'Butterfly',
className: 'text-base font-bold text-gray-900 dark:text-white'
),
WText(
'English translation',
className: 'text-xs text-gray-400 dark:text-gray-500'
),
],
),
WDiv(
className: 'flex items-center justify-center w-10 h-10 rounded-full bg-indigo-500 dark:bg-indigo-500',
child: WIcon(
Icons.volume_up,
className: 'text-white text-lg'
),
),
],
),
WDiv(
className: 'flex flex-row items-center gap-3 w-full',
children: [
WDiv(
className: 'flex flex-row items-center justify-center gap-2 rounded-2xl px-5 py-3 w-[150px] bg-gray-100 dark:bg-gray-800',
children: [
WIcon(
Icons.schedule,
className: 'text-gray-600 text-base dark:text-gray-300'
),
WText(
'Review',
className: 'text-sm font-bold text-gray-700 dark:text-gray-200'
),
],
),
WDiv(
className: 'flex flex-row items-center justify-center gap-2 rounded-2xl px-5 py-3 w-[150px] bg-indigo-500 dark:bg-indigo-500',
children: [
WIcon(
Icons.check,
className: 'text-white text-base'
),
WText(
'Got it',
className: 'text-sm font-bold text-white'
),
],
),
],
),
],
)
Stats
- Views
- 17
- Stars
- 0
- Revisions
- 1
- Size
- 3,642 chars
- Created
- Jun 14, 2026