Skip to main content

ios_liquid_glass_effect 0.1.0-alpha.1 copy "ios_liquid_glass_effect: ^0.1.0-alpha.1" to clipboard
ios_liquid_glass_effect: ^0.1.0-alpha.1 copied to clipboard

Native iOS 26 Liquid Glass surfaces and buttons for Flutter, with glass effects on Android, web, and desktop.

example/example.md

Glass Studio #

The example app puts GlassSurface and GlassButton into a small interactive gallery. The floating navigation opens the surfaces, buttons, and renderer panels.

Dark Glass Studio with a glass surface over a lake photograph Light Glass Studio with a clear glass surface over a contrast grid
  • Surfaces lets you scroll three backdrops, compare regular and clear glass, and adjust the tint.
  • Buttons shows the normal, prominent, and disabled states. Tap Like to update its label or Continue to open a sheet.
  • Renderer shows the selected renderer and lets you force the Flutter fallback on iOS.
Animated example switching backdrops, changing the glass, and opening the button's sheet

These captures show the Flutter web fallback. Run the app on iOS 26 or later for native UIKit Liquid Glass.

Run Glass Studio #

The gallery starts in example/lib/main.dart. If your copy has no platform runner, run bash tool/bootstrap_example.sh ios or bash tool/bootstrap_example.sh web from the package root first.

cd example
flutter pub get
flutter run

Minimal example #

Add ios_liquid_glass_effect to a Flutter app and put this in lib/main.dart to try a surface and button together.

import 'package:flutter/material.dart';
import 'package:ios_liquid_glass_effect/ios_liquid_glass_effect.dart';

void main() => runApp(const MaterialApp(home: GlassDemo()));

class GlassDemo extends StatelessWidget {
  const GlassDemo({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: SizedBox(
          width: 280,
          height: 220,
          child: ColoredBox(
            color: const Color(0xff428582),
            child: Center(
              child: Column(
                mainAxisSize: MainAxisSize.min,
                children: [
                  const GlassSurface(child: Text('Liquid Glass')),
                  const SizedBox(height: 12),
                  GlassButton(
                    label: 'Continue',
                    systemImage: 'arrow.right',
                    fallbackIcon: Icons.arrow_forward,
                    prominent: true,
                    onPressed: () => ScaffoldMessenger.of(context).showSnackBar(
                      const SnackBar(content: Text('Glass button pressed')),
                    ),
                  ),
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }
}
1
likes
0
points
98
downloads

Publisher

verified publishercodemicros.com

Weekly Downloads

Native iOS 26 Liquid Glass surfaces and buttons for Flutter, with glass effects on Android, web, and desktop.

Homepage
Repository (GitHub)
View/report issues

Topics

#liquid-glass #ios #uikit #widget #ui

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ios_liquid_glass_effect

Packages that implement ios_liquid_glass_effect