Containers
Dialog
LiqDialog is the iOS 26 center-anchored modal box. It renders a glass
card with a title, optional message, and an optional row of action
buttons — well-suited to confirmations and short, focused decisions.
The widget itself renders a static dialog surface — useful for static
demos and tests. For programmatic presentation with the scale-and-fade
animation, dimmed scrim, and dismiss-on-scrim-tap or Escape key, use
LiqDialogOverlay.show().
Default
// ignore_for_file: file_names // hyphenated name required by snippet manifest conventionimport 'package:docs_snippets/src/snippet_frame.dart';import 'package:flutter/widgets.dart';import 'package:liqkit_ui/liqkit_ui.dart';/// Snippet builder consumed by `apps/docs_snippets/lib/src/routes.g.dart`.Widget dialogDefaultBuilder(BuildContext context) { return const SnippetFrame( maxWidth: 360, height: 220, surface: SnippetFrameSurface.liquidThemed, surfaceScrimOpacity: 0.4, child: Center( child: LiqDialog( title: 'Discard changes?', message: 'Your edits will be lost. This cannot be undone.', ), ), );}
With Actions
// ignore_for_file: file_names // hyphenated name required by snippet manifest conventionimport 'package:docs_snippets/src/snippet_frame.dart';import 'package:flutter/widgets.dart';import 'package:liqkit_ui/liqkit_ui.dart';/// Snippet builder consumed by `apps/docs_snippets/lib/src/routes.g.dart`.Widget dialogWithActionsBuilder(BuildContext context) { return SnippetFrame( maxWidth: 360, height: 220, surface: SnippetFrameSurface.liquidThemed, surfaceScrimOpacity: 0.4, child: Center( child: LiqDialog( title: 'Discard changes?', message: 'Your edits will be lost. This cannot be undone.', actions: <LiqDialogAction>[ LiqDialogAction(label: 'Cancel', onPressed: () {}), LiqDialogAction( label: 'Discard', onPressed: () {}, destructive: true, isDefault: true, ), ], ), ), );}