veil_ui library

veil_ui — iOS 26-style glass widgets for Flutter.

Import this single file to access all public APIs:

import 'package:veil_ui/veil_ui.dart';

Initialization (call once before runApp):

await VeilUi.init();
runApp(const MyApp());

Classes

AppDimensions
Static sizing tokens used by veil_ui widgets.
BackLeading
Transparent back button (chevron or ×) that automatically adapts to:
BlurredBottomOverlay
Wraps child in a Stack and renders a gradient overlay at the bottom (or top when inverseGradient is true) with an optional fixed widget above it.
GlassAppBar
A transparent app bar with a smooth iOS 26-style gradient shadow that fades content scrolling beneath it.
IosButtonWidget
Native iOS button using an SF Symbol glyph via cupertino_native.
IosVersionHelper
Caches the iOS major version so widgets never issue redundant async platform calls during build.

Functions

showVeilUISheet<T>({required BuildContext context, required WidgetBuilder builder, bool useNestedNavigation = false, bool enableDrag = true}) Future<T?>
Wrapper for Flutter's showCupertinoSheet with Veil naming convention