Flutter Lab Results Card with Flagged Reference Ranges
A clinical lab report card that sets every analyte next to its reference range, outlines the out-of-range results in amber and rose, and marks the normal ones with a quiet check. Includes a trend note and a provider CTA, styled end to end with Wind utility classes and full dark-mode pairs.
main.dart
WDiv(
className: 'max-w-sm rounded-3xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 p-6 shadow-xl',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'flex flex-row items-center justify-center w-11 h-11 rounded-2xl bg-teal-500 dark:bg-teal-500',
child: WIcon(
Icons.water_drop,
className: 'text-white text-xl'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Metabolic Panel',
className: 'text-base font-bold text-gray-900 dark:text-white'
),
WText(
'Drawn Aug 1 | Lab 22841',
className: 'text-xs text-gray-500 dark:text-gray-400 mt-0.5'
),
],
),
],
),
WDiv(
className: 'rounded-full bg-amber-100 dark:bg-amber-500 px-2.5 py-1',
child: WText(
'2 flagged',
className: 'text-[11px] font-bold text-amber-700 dark:text-gray-900'
),
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full rounded-2xl border border-amber-200 dark:border-amber-500 bg-amber-50 dark:bg-gray-800 px-3 py-2.5 mt-5',
children: [
WDiv(
className: 'flex flex-col',
children: [
WText(
'Glucose',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'Ref 70-99 mg/dL',
className: 'text-[11px] text-gray-500 dark:text-gray-400 mt-0.5'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WText(
'112',
className: 'text-base font-bold text-amber-600 dark:text-amber-400'
),
WDiv(
className: 'rounded-md bg-amber-500 dark:bg-amber-500 px-1.5 py-0.5 ml-2',
child: WText(
'H',
className: 'text-[10px] font-bold text-white dark:text-gray-900'
),
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full rounded-2xl border border-rose-200 dark:border-rose-500 bg-rose-50 dark:bg-gray-800 px-3 py-2.5 mt-2',
children: [
WDiv(
className: 'flex flex-col',
children: [
WText(
'Potassium',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'Ref 3.5-5.2 mmol/L',
className: 'text-[11px] text-gray-500 dark:text-gray-400 mt-0.5'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WText(
'5.6',
className: 'text-base font-bold text-rose-600 dark:text-rose-400'
),
WDiv(
className: 'rounded-md bg-rose-500 dark:bg-rose-500 px-1.5 py-0.5 ml-2',
child: WText(
'H',
className: 'text-[10px] font-bold text-white dark:text-white'
),
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full px-3 py-2.5 mt-1',
children: [
WDiv(
className: 'flex flex-col',
children: [
WText(
'Sodium',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'Ref 135-145 mmol/L',
className: 'text-[11px] text-gray-500 dark:text-gray-400 mt-0.5'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WText(
'139',
className: 'text-base font-bold text-gray-900 dark:text-white'
),
WDiv(
className: 'ml-2',
child: WIcon(
Icons.check_circle,
className: 'text-emerald-500 dark:text-emerald-400 text-base'
),
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full px-3 py-2.5',
children: [
WDiv(
className: 'flex flex-col',
children: [
WText(
'Creatinine',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'Ref 0.6-1.3 mg/dL',
className: 'text-[11px] text-gray-500 dark:text-gray-400 mt-0.5'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WText(
'0.9',
className: 'text-base font-bold text-gray-900 dark:text-white'
),
WDiv(
className: 'ml-2',
child: WIcon(
Icons.check_circle,
className: 'text-emerald-500 dark:text-emerald-400 text-base'
),
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full px-3 py-2.5',
children: [
WDiv(
className: 'flex flex-col',
children: [
WText(
'Calcium',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'Ref 8.6-10.3 mg/dL',
className: 'text-[11px] text-gray-500 dark:text-gray-400 mt-0.5'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WText(
'9.4',
className: 'text-base font-bold text-gray-900 dark:text-white'
),
WDiv(
className: 'ml-2',
child: WIcon(
Icons.check_circle,
className: 'text-emerald-500 dark:text-emerald-400 text-base'
),
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center w-full rounded-2xl bg-gray-50 dark:bg-gray-800 p-3 mt-3',
children: [
WDiv(
className: 'flex flex-row items-center justify-center w-9 h-9 rounded-full bg-white dark:bg-gray-900',
child: WIcon(
Icons.trending_up,
className: 'text-amber-500 dark:text-amber-400 text-base'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Potassium up from 5.1 mmol/L',
className: 'text-xs font-semibold text-gray-900 dark:text-white'
),
WText(
'Repeat draw suggested within 7 days',
className: 'text-[11px] text-gray-500 dark:text-gray-400 mt-0.5'
),
],
),
],
),
WDiv(
className: 'w-full mt-5',
child: WButton(
className: 'flex flex-row items-center justify-center w-full rounded-2xl bg-teal-500 dark:bg-teal-500 py-3.5',
child: WText(
'Message Your Provider',
className: 'text-sm font-bold text-white dark:text-white'
),
),
),
WDiv(
className: 'flex flex-row items-center justify-center w-full mt-3',
child: WText(
'Reviewed by Dr. Elena Marsh | 18 hr turnaround',
className: 'text-[11px] text-gray-400 dark:text-gray-500'
),
),
],
)
Stats
- Views
- 72
- Stars
- 0
- Revisions
- 1
- Size
- 7,956 chars
- Created
- Aug 2, 2026