Flutter Subscription Management Card with Usage Meter
A subscription management card showing the current plan, monthly price, renewal date, an API usage meter, and a manage action. Clean Wind styling with complete dark-mode pairs.
main.dart
WDiv(
className: 'mx-auto max-w-sm flex flex-col gap-5 rounded-3xl p-6 bg-white border border-gray-100 shadow-xl dark:bg-gray-900 dark:border-gray-800',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WDiv(
className: 'flex flex-row items-center gap-3',
children: [
WDiv(
className: 'w-11 h-11 rounded-2xl bg-violet-50 dark:bg-violet-500/15 flex flex-row items-center justify-center',
child: WIcon(
Icons.bolt,
className: 'text-xl text-violet-500 dark:text-violet-400'
),
),
WDiv(
className: 'flex flex-col',
children: [
WText(
'Pro Plan',
className: 'text-base font-bold text-gray-900 dark:text-white'
),
WText(
'Billed monthly',
className: 'text-xs text-gray-500 dark:text-gray-400'
),
],
),
],
),
WDiv(
className: 'flex flex-row items-end gap-0.5',
children: [
WText(
'$24',
className: 'text-2xl font-extrabold text-gray-900 dark:text-white'
),
WText(
'/mo',
className: 'text-xs font-medium text-gray-400 dark:text-gray-500'
),
],
),
],
),
WDiv(
className: 'flex flex-row items-center gap-2 rounded-2xl bg-gray-50 dark:bg-gray-800 px-4 py-3 w-full',
children: [
WIcon(
Icons.calendar_today,
className: 'text-sm text-gray-400 dark:text-gray-500'
),
WText(
'Renews on Jul 21, 2026',
className: 'text-xs text-gray-600 dark:text-gray-300'
),
],
),
WDiv(
className: 'flex flex-col gap-2 w-full',
children: [
WDiv(
className: 'flex flex-row items-center justify-between w-full',
children: [
WText(
'API credits',
className: 'text-xs text-gray-500 dark:text-gray-400'
),
WText(
'8,240 / 10,000',
className: 'text-xs font-semibold text-gray-900 dark:text-white'
),
],
),
WDiv(
className: 'flex flex-row items-center w-full h-2.5 rounded-full bg-gray-100 dark:bg-gray-800',
child: WDiv(
className: 'h-2.5 w-[277px] rounded-full bg-gradient-to-r from-violet-500 to-fuchsia-500',
child: WSpacer(
className: 'w-[277px] h-2.5'
),
),
),
],
),
WButton(
className: 'w-full rounded-2xl py-3.5 bg-violet-600 dark:bg-violet-500 shadow-lg flex flex-row items-center justify-center',
child: WText(
'Manage subscription',
className: 'text-sm font-bold text-white dark:text-white'
),
),
],
)
Stats
- Views
- 61
- Stars
- 0
- Revisions
- 1
- Size
- 3,057 chars
- Created
- Jul 7, 2026