Flutter Meditation Session Card with Streak and Weekly Goal
A calming daily meditation card with a gradient backdrop, guided session details, a streak badge, and a weekly goal progress bar. Built with Wind utility classes and complete dark-mode pairs.
main.dart
WDiv(
className: 'mx-auto max-w-sm flex flex-col gap-5 rounded-3xl p-6 bg-gradient-to-br from-indigo-500 to-purple-600 shadow-xl dark:from-indigo-600 dark:to-purple-700',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center gap-2',
children: [
WDiv(
className: 'w-8 h-8 rounded-full bg-white/20 dark:bg-white/20 flex flex-row items-center justify-center',
child: WIcon(
Icons.dark_mode,
className: 'text-base text-white dark:text-white'
),
),
WText(
'Daily Calm',
className: 'text-sm font-semibold text-white dark:text-white'
),
],
),
WDiv(
className: 'flex flex-row items-center gap-1 rounded-full px-3 py-1 bg-white/15 dark:bg-white/15',
children: [
WIcon(
Icons.bolt,
className: 'text-xs text-amber-200 dark:text-amber-200'
),
WText(
'12 day streak',
className: 'text-xs font-medium text-white dark:text-white'
),
],
),
],
),
WDiv(
className: 'flex flex-col gap-1 w-full',
children: [
WText(
'Evening Wind Down',
className: 'text-2xl font-bold text-white dark:text-white'
),
WText(
'Release the day and ease into rest',
className: 'text-sm text-indigo-100 dark:text-indigo-100'
),
],
),
WDiv(
className: 'flex flex-row items-center gap-4 w-full',
children: [
WButton(
className: 'w-14 h-14 rounded-full bg-white dark:bg-white shadow-lg flex flex-row items-center justify-center',
child: WIcon(
Icons.play_arrow,
className: 'text-2xl text-purple-600 dark:text-purple-600'
),
),
WDiv(
className: 'flex flex-col gap-1',
children: [
WText(
'10 min session',
className: 'text-sm font-semibold text-white dark:text-white'
),
WText(
'Guided by Aria',
className: 'text-xs text-indigo-100 dark:text-indigo-100'
),
],
),
],
),
WDiv(
className: 'flex flex-col gap-2 w-full',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WText(
'Weekly goal',
className: 'text-xs text-indigo-100 dark:text-indigo-100'
),
WText(
'4 / 7 sessions',
className: 'text-xs font-medium text-white dark:text-white'
),
],
),
WDiv(
className: 'flex flex-row items-center w-full h-2 rounded-full bg-white/20 dark:bg-white/20',
child: WDiv(
className: 'h-2 w-[192px] rounded-full bg-white dark:bg-white',
child: WSpacer(
className: 'w-[192px] h-2'
),
),
),
],
),
],
)
Stats
- Views
- 62
- Stars
- 0
- Revisions
- 1
- Size
- 3,257 chars
- Created
- Jul 7, 2026