glassy_ui_ios library

Native iOS components (SwiftUI + UIKit) for Flutter with Liquid Glass on iOS 26+ and classic styling on iOS 17–18.

Classes

GlassAvatarButton
A circular avatar (initials or photo) that opens a native menu.
GlassBackButton
A glass back button (chevron.backward). Pops the current route unless onPressed is given. Falls back to a Material BackButton.
GlassButton
A glass button with a label and/or icon.
GlassCheckbox
A round checkbox with an animated checkmark, optionally with a label. Falls back to a Material Checkbox / CheckboxListTile.
GlassCloseButton
A glass close button (xmark). Pops the current route unless onPressed is given. Falls back to a Material CloseButton.
GlassColorPicker
A native color well that opens the system color picker, optionally with a label. iOS only: fallback defaults to nothing.
GlassDatePicker
A native date and/or time picker. Falls back to a button that opens the Material date or time picker.
GlassFloatingActionButton
A tinted glass floating action button for Scaffold.floatingActionButton.
GlassIconButton
A circular glass icon button, e.g. for AppBar.actions.
GlassImageButton
An artwork tile with a glass badge, e.g. a video or album cover.
GlassMediaControls
Previous / play-pause / next controls in a glass capsule. Falls back to Material icon buttons.
GlassMenuButton
A glass button that opens a native iOS menu.
GlassPageIndicator
Page dots in a glass capsule; the current page stretches into a pill.
GlassPlayPauseButton
A glass play / pause button with an animated symbol swap. Falls back to a Material IconButton.
GlassPopupButton
A pop-up button that shows the current choice and opens a native picker menu (Menu + Picker). Falls back to a Material DropdownButton.
GlassProgressIndicator
A native progress bar or ring. Without a value it is a spinner. Falls back to Material progress indicators.
GlassSearchBar
A glass search capsule with a clear button. Falls back to a Material SearchBar.
GlassSegmentedControl
A native segmented control. Falls back to a Material SegmentedButton.
GlassSlider
A native slider with optional SF Symbols at both ends. Falls back to a Material Slider.
GlassStepper
Glass minus / value / plus stepper.
GlassSwitch
A native switch, optionally with a label (the row then fills the width). Falls back to a Material Switch / SwitchListTile.
GlassTabBar
A floating glass tab bar for Scaffold.bottomNavigationBar.
GlassTextField
A native text field in a glass rounded rectangle: single line, secure (obscureText) or multiline. Falls back to a Material TextField.
GlassTextFieldController
Commands for a GlassTextField or GlassSearchBar.
GlassToolbar
A floating glass capsule of buttons: toolbars, button groups, photo actions.
GlassWheelPicker
A native wheel picker. Falls back to a CupertinoPicker.
NativeComponent
Embeds a native SwiftUI / UIKit component (iOS only).
NativeComponentConfig
Content and appearance of a native component.
NativeComponentController
Controls one embedded native component.
NativeDialog
Native UIAlertController alerts, action sheets and prompts.
NativeEvent
A callback delivered from the native component.
NativeImage
An image shown natively: an SF Symbol, a Flutter asset or raw bytes.
NativeItem
A generic entry: tab, menu action, segment, option, toolbar button or row. Nest children for submenus, split-view items and wheel picker columns.
NativeShare
The native share sheet (UIActivityViewController).
NativeSheet
A native sheet listing options.
NativeStyle
Visual customization shared by every component.
NativeSystem
System-level helpers of the plugin.
NativeSystemInfo
Device information reported by the plugin.
NativeToast
A glass capsule toast over the whole app. Touches pass through it.

Enums

GlassDatePickerMode
What a GlassDatePicker picks.
GlassDatePickerStyle
How a GlassDatePicker looks.
GlassKeyboardType
Keyboard shown by a GlassTextField.
GlassProgressStyle
Shape of a GlassProgressIndicator.
NativeColorScheme
Forces the native light or dark appearance.
NativeComponentCategory
Grouping used for catalogs and documentation.
NativeComponentType
Every built-in native component.
NativeControlSize
SwiftUI ControlSize.
NativeFontDesign
SwiftUI Font.Design.
NativeFontWeight
SwiftUI Font.Weight.
NativeGlass
Glass appearance for glass surfaces.
NativeHaptic
Haptic feedback styles.
NativeItemRole
Role of a NativeItem in menus, alerts and dialogs.
NativeSheetDetent
Height a NativeSheet can rest at.
NativeToastPosition
Where a NativeToast appears.

Functions

encodeNativeValue(Object? value) → Object?
Converts Dart values into codec-friendly ones (DateTime, Color, enums).