Flutter iOS 27 Liquid Glass Translucency Control Card
The headline iOS 27 feature from WWDC 2026: a tunable Liquid Glass appearance card with a translucency slider that runs from ultra clear to fully tinted. Built with Wind UI over a vivid wallpaper so you can see exactly how much the glass refracts.
main.dart
WDiv(
className: '''
relative w-[420px] h-[600px] overflow-hidden rounded-[44px]
bg-gradient-to-br from-orange-300 via-pink-500 to-purple-700
dark:from-orange-400 dark:via-pink-600 dark:to-purple-800
''',
children: [
WDiv(
className: 'absolute -top-14 -left-10 w-56 h-56 rounded-full bg-amber-200/40 dark:bg-amber-200/30',
),
WDiv(
className: 'absolute top-40 -right-14 w-64 h-64 rounded-full bg-fuchsia-300/40 dark:bg-fuchsia-300/30',
),
WDiv(
className: 'absolute -bottom-16 left-12 w-64 h-64 rounded-full bg-indigo-400/40 dark:bg-indigo-400/30',
),
WDiv(
className: 'absolute inset-0 flex flex-col justify-center items-center p-6',
children: [
WDiv(
className: '''
w-[360px] flex flex-col gap-6 p-7 rounded-3xl
border border-white/40 dark:border-white/30
bg-white/15 dark:bg-white/10
shadow-2xl shadow-black/30 dark:shadow-black/50
''',
children: [
WDiv(
className: 'w-full flex flex-row items-center justify-between',
children: [
WDiv(
className: '''
w-12 h-12 rounded-2xl
bg-gradient-to-br from-white/50 to-white/10
dark:from-white/40 dark:to-white/5
border border-white/40 dark:border-white/30
flex flex-row items-center justify-center
''',
child: WIcon(
Icons.settings,
className: 'text-2xl text-white dark:text-white',
),
),
WDiv(
className: '''
rounded-full px-3 py-1
border border-white/30 dark:border-white/20
bg-white/20 dark:bg-white/15
''',
child: WText(
'iOS 27',
className: 'text-xs font-bold text-white dark:text-white',
),
),
],
),
WText(
'Liquid Glass',
className: 'text-3xl font-bold text-white dark:text-white',
),
WText(
'Drag to tune how much your wallpaper refracts through every glass surface.',
className: 'text-sm font-medium text-white/75 dark:text-white/75 leading-relaxed',
),
WDiv(
className: 'w-full flex flex-row items-center justify-between',
children: [
WText(
'Translucency',
className: 'text-sm font-semibold text-white dark:text-white',
),
WText(
'Clear',
className: 'text-sm font-bold text-white dark:text-white',
),
],
),
WDiv(
className: 'relative w-full h-7',
children: [
WDiv(
className: 'absolute left-0 top-[10px] w-full h-2 rounded-full bg-white/25 dark:bg-white/15',
),
WDiv(
className: '''
absolute left-0 top-[10px] w-[210px] h-2 rounded-full
bg-gradient-to-r from-white/70 to-white
dark:from-white/60 dark:to-white/90
''',
),
WDiv(
className: '''
absolute left-[196px] top-0 w-7 h-7 rounded-full
bg-white dark:bg-white
border border-white/70 dark:border-white/60
shadow-lg shadow-black/40 dark:shadow-black/60
''',
),
],
),
WDiv(
className: 'w-full flex flex-row items-center justify-between',
children: [
WText(
'Ultra Clear',
className: 'text-xs font-medium text-white/60 dark:text-white/60',
),
WText(
'Fully Tinted',
className: 'text-xs font-medium text-white/60 dark:text-white/60',
),
],
),
WDiv(
className: 'w-full flex flex-row items-center gap-3',
children: [
WDiv(
className: '''
flex-1 rounded-full px-4 py-3
border border-white/50 dark:border-white/40
bg-white/30 dark:bg-white/25
flex flex-row items-center justify-center
''',
child: WText(
'Clear',
className: 'text-sm font-bold text-white dark:text-white',
),
),
WDiv(
className: '''
flex-1 rounded-full px-4 py-3
border border-white/20 dark:border-white/15
bg-white/10 dark:bg-white/5
flex flex-row items-center justify-center
''',
child: WText(
'Tinted',
className: 'text-sm font-semibold text-white/70 dark:text-white/70',
),
),
],
),
],
),
],
),
],
)
Stats
- Views
- 51
- Stars
- 0
- Revisions
- 1
- Size
- 5,489 chars
- Created
- Jun 11, 2026