Luxe Toast 💎

A high-performance, physics-based notification system featuring holographic shimmers, staggered kinetic entrances, and a futuristic HUD aesthetic.

Luxe Toast Demo

Screenshots 📸

Success State Error State Info State

Features 🚀

  • Kinetic Entrance: Physically snaps open using elastic physics (no boring fades).
  • Holographic Shimmer: A light beam sweeps across the glass surface.
  • Alive & Breathing: The toast gently floats up and down while visible.
  • Staggered Animation: Icon spins, text slides, and progress bar shrinks.
  • Zero Boilerplate: Call it anywhere without needing a BuildContext builder.

Parameters ⚙️

Parameter Type Description Default
title String The bold header text. "Notification"
message String The main body text. (Required)
color Color The accent color for glow & border. Colors.tealAccent
icon IconData The icon displayed on the left. Icons.info
duration Duration How long the toast stays visible. 3 seconds
position LuxeToastPosition Display position: .top or .bottom. .top

Installation 💻

dependencies:
  luxe_toast: ^0.0.1

Usage 🛠️

Import the package and use the luxe_toast widget in your UI.

import 'package:luxe_toast/luxe_toast.dart';
// ... inside your widget tree
LuxeToast.show(
  context,
  title: "Access Granted",
  message: "Biometric verification successful.",
  color: Colors.cyanAccent,
  icon: Icons.fingerprint,
  position: LuxeToastPosition.top,
  duration: Duration(seconds: 4),
);

Libraries

luxe_toast