Flutter Reading Progress Card with Chapter Tracker
A reading companion card with book cover, genre tag, chapter progress bar, time-left estimate, rating, and a continue-reading action. Ideal for ebook, audiobook, and learning apps.
main.dart
WDiv(
className: 'mx-auto max-w-sm flex flex-col gap-5 rounded-3xl p-6 bg-white border border-gray-200 shadow-xl dark:bg-gray-900 dark:border-gray-800',
children: [
WDiv(
className: 'flex flex-row items-center gap-4 w-full',
children: [
WDiv(
className: 'flex items-end justify-center w-16 h-24 rounded-xl p-2 bg-gradient-to-br from-rose-500 to-orange-500 shadow-lg dark:from-rose-600 dark:to-orange-600',
child: WText(
'PHM',
className: 'text-xs font-black tracking-wider text-white dark:text-white',
),
),
WDiv(
className: 'flex flex-col gap-1',
children: [
WDiv(
className: 'flex flex-row items-center gap-1 rounded-full px-2 py-1 bg-rose-100 dark:bg-rose-500/20',
child: WText(
'Sci-Fi',
className: 'text-[10px] font-bold uppercase tracking-wide text-rose-600 dark:text-rose-300',
),
),
WText(
'Project Hail Mary',
className: 'text-base font-bold text-gray-900 dark:text-white',
),
WText(
'Andy Weir',
className: 'text-xs text-gray-500 dark:text-gray-400',
),
],
),
],
),
WDiv(
className: 'flex flex-col gap-2 w-full',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WText(
'Chapter 14 of 32',
className: 'text-xs font-semibold text-gray-700 dark:text-gray-300',
),
WText(
'44%',
className: 'text-xs font-bold text-rose-600 dark:text-rose-400',
),
],
),
WDiv(
className: 'flex flex-row items-center w-full h-2 rounded-full bg-gray-200 dark:bg-gray-700',
child: WDiv(
className: 'h-2 w-[128px] rounded-full bg-gradient-to-r from-rose-500 to-orange-500 dark:from-rose-500 dark:to-orange-500',
child: WSpacer(
className: 'w-[128px] h-2',
),
),
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center gap-2',
children: [
WIcon(
Icons.schedule,
className: 'text-gray-400 text-sm dark:text-gray-500',
),
WText(
'3h 12m left',
className: 'text-xs font-medium text-gray-500 dark:text-gray-400',
),
],
),
WDiv(
className: 'flex flex-row items-center gap-1',
children: [
WIcon(
Icons.star,
className: 'text-amber-400 text-sm dark:text-amber-300',
),
WText(
'4.8',
className: 'text-xs font-bold text-gray-700 dark:text-gray-200',
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center justify-center gap-2 w-full rounded-2xl px-4 py-3 bg-gray-900 dark:bg-white',
children: [
WIcon(
Icons.play_arrow,
className: 'text-white text-base dark:text-gray-900',
),
WText(
'Continue reading',
className: 'text-sm font-bold text-white dark:text-gray-900',
),
],
),
],
)
Stats
- Views
- 13
- Stars
- 0
- Revisions
- 1
- Size
- 3,529 chars
- Created
- Jun 18, 2026