Components
Feedback & status
BMoniToast, BMoniToastOverlay, EmptyState, FailureWidget, InProgressWidget, and loaders.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
BMoniToast, BMoniToastOverlay, EmptyState, FailureWidget, InProgressWidget, and loaders.
// Success
BMoniToastOverlay.showSuccess(
context: context,
message: 'Payment sent!',
title: 'Success',
);
// Error
BMoniToastOverlay.showError(
context: context,
message: 'Something went wrong. Please try again.',
);
// Warning
BMoniToastOverlay.showWarning(
context: context,
message: 'Your session is about to expire.',
);
// Info
BMoniToastOverlay.showInfo(
context: context,
message: 'A new version is available.',
title: 'Update ready',
);
| Param | Type | Default | Description |
|---|---|---|---|
context | BuildContext | — | The context used to insert the overlay. |
message | String | — | Main toast body. |
title | String? | null | Optional bold title line. |
duration | Duration | 3s | How long the toast is shown. |
EmptyState(
svgAsset: 'assets/svgs/empty_box.svg',
message: 'No transactions yet',
subtitle: 'Send or receive funds to get started',
buttonText: 'Add money',
onButtonPressed: () { /* navigate to add money flow */ },
)
| Prop | Type | Description |
|---|---|---|
svgAsset | String | Asset path to an SVG illustration. |
message | String | Primary heading. |
subtitle | String? | Supporting text below the heading. |
buttonText | String? | CTA label. When set, a BMoniButton.primary is shown. |
onButtonPressed | VoidCallback? | CTA action. |
FailureWidget(
message: 'Could not load wallets.',
onRetry: () => ref.invalidate(walletsProvider),
)
const InProgressWidget(message: 'Processing your payment...')
// Branded square progress container
const ProgressLoaderWidget()
// Three small white dots animating sequentially
const ChasingDots()
