fresnel 0.1.0
fresnel: ^0.1.0 copied to clipboard
Apple Liquid Glass for Flutter. Real native iOS 26+ glass via SwiftUI platform views, with a calibrated shader fallback on Android, web and desktop.
import 'package:flutter/widgets.dart';
import 'package:fresnel/fresnel.dart';
import 'src/app.dart';
/// Capabilities are resolved and the shader is compiled before the first
/// frame. Without this the app opens on the shader path and swaps to native
/// once the handshake lands, which is visible.
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Fresnel.ensureInitialized();
runApp(const FresnelShowcaseApp());
}