Flutter Cloud Storage Quota Card with Category Breakdown Bar
A cloud storage usage card that breaks a 15 GB plan into photos, videos, documents and app backups: a segmented multi-colour capacity bar, per-category legend rows with size and share, a billing footnote and an upgrade call to action. Built entirely with Wind utility classes, including fixed-width bar segments, a rounded icon tile and full dark-mode pairs.
main.dart
WDiv(
className: 'max-w-sm w-full rounded-3xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 shadow-xl p-6',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'w-11 h-11 rounded-2xl bg-sky-50 dark:bg-sky-900 flex flex-row items-center justify-center',
child: WIcon(
Icons.cloud,
className: 'text-sky-600 dark:text-sky-300 text-xl'
),
),
WDiv(
className: 'flex flex-col ml-3',
children: [
WText(
'Cloud Storage',
className: 'text-base font-bold text-gray-900 dark:text-white'
),
WText(
'Pro plan | 15 GB',
className: 'text-xs text-gray-500 dark:text-gray-400'
),
],
),
],
),
WDiv(
className: 'px-2.5 py-1 rounded-full bg-amber-100 dark:bg-amber-800',
child: WText(
'85% full',
className: 'text-xs font-semibold text-amber-700 dark:text-amber-100'
),
),
],
),
WDiv(
className: 'flex flex-row items-center w-full mt-5',
children: [
WText(
'12.7 GB',
className: 'text-3xl font-extrabold text-gray-900 dark:text-white'
),
WText(
'of 15 GB used',
className: 'text-xs text-gray-500 dark:text-gray-400 ml-2'
),
],
),
WDiv(
className: 'flex flex-row items-center gap-1 w-full mt-4',
children: [
WDiv(
className: 'w-[130px] h-2.5 rounded-full bg-violet-500 dark:bg-violet-400'
),
WDiv(
className: 'w-[81px] h-2.5 rounded-full bg-sky-500 dark:bg-sky-400'
),
WDiv(
className: 'w-[40px] h-2.5 rounded-full bg-emerald-500 dark:bg-emerald-400'
),
WDiv(
className: 'w-[19px] h-2.5 rounded-full bg-amber-500 dark:bg-amber-400'
),
WDiv(
className: 'w-[49px] h-2.5 rounded-full bg-gray-200 dark:bg-gray-700'
),
],
),
WDiv(
className: 'flex flex-col gap-3 w-full mt-5',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'w-2.5 h-2.5 rounded-full bg-violet-500 dark:bg-violet-400'
),
WText(
'Photos',
className: 'text-sm font-medium text-gray-700 dark:text-gray-200 ml-2.5'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WText(
'6.1 GB',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'41%',
className: 'text-xs text-gray-400 dark:text-gray-500 ml-2'
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'w-2.5 h-2.5 rounded-full bg-sky-500 dark:bg-sky-400'
),
WText(
'Videos',
className: 'text-sm font-medium text-gray-700 dark:text-gray-200 ml-2.5'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WText(
'3.8 GB',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'25%',
className: 'text-xs text-gray-400 dark:text-gray-500 ml-2'
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'w-2.5 h-2.5 rounded-full bg-emerald-500 dark:bg-emerald-400'
),
WText(
'Documents',
className: 'text-sm font-medium text-gray-700 dark:text-gray-200 ml-2.5'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WText(
'1.9 GB',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'13%',
className: 'text-xs text-gray-400 dark:text-gray-500 ml-2'
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center',
children: [
WDiv(
className: 'w-2.5 h-2.5 rounded-full bg-amber-500 dark:bg-amber-400'
),
WText(
'App backups',
className: 'text-sm font-medium text-gray-700 dark:text-gray-200 ml-2.5'
),
],
),
WDiv(
className: 'flex flex-row items-center',
children: [
WText(
'0.9 GB',
className: 'text-sm font-semibold text-gray-900 dark:text-white'
),
WText(
'6%',
className: 'text-xs text-gray-400 dark:text-gray-500 ml-2'
),
],
),
],
),
],
),
WDiv(
className: 'w-full border-t border-gray-100 dark:border-gray-800 mt-5'
),
WDiv(
className: 'flex flex-row items-center w-full mt-4',
children: [
WIcon(
Icons.schedule,
className: 'text-gray-400 dark:text-gray-500 text-sm'
),
WText(
'Only 2.3 GB left, next billing Aug 3',
className: 'text-xs text-gray-500 dark:text-gray-400 ml-1.5'
),
],
),
WButton(
className: 'w-full mt-4 rounded-2xl bg-sky-600 dark:bg-sky-500 py-3',
child: WText(
'Upgrade to 2 TB',
className: 'text-white text-center font-semibold text-sm'
),
),
],
)
Stats
- Views
- 2
- Stars
- 0
- Revisions
- 2
- Size
- 7,060 chars
- Created
- Jul 25, 2026
Revisions