liqkit_ui
Status

Toast

LiqToast is a transient pill-shaped notification typically anchored to the bottom of the screen and dismissed automatically after a few seconds. It is different from LiqNotification — that one models a persistent iOS lock-screen banner anchored to the top, while a toast exists only briefly to acknowledge an action or surface a quick status.

The LiqToast widget renders a single static pill. To show a toast imperatively over the nearest Overlay and auto-dismiss it, use LiqToastOverlay.show(context, message, variant: …, duration: …). Calling show again while a previous toast is still visible dismisses the previous one first — only one toast is on screen at a time.

Success

import '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 toastSuccessBuilder(BuildContext context) {  return const SnippetFrame(    child: LiqToast(message: 'Project saved', variant: LiqToastVariant.success),  );}

Error

import '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 toastErrorBuilder(BuildContext context) {  return const SnippetFrame(    child: LiqToast(      message: 'Could not connect to server',      variant: LiqToastVariant.error,    ),  );}

Info

import '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 toastInfoBuilder(BuildContext context) {  return const SnippetFrame(    child: LiqToast(message: '3 new updates available'),  );}

On this page