error_aesthetics

A Flutter library for elegant error and status displays (SnackBar, Toast, Dialog) with full theming, light/dark support, and easy customization.

Features

  • Display messages via SnackBar, Toast, or Dialog
  • Customize colors, icons, text style per ErrorType
  • Predefined types: general, warning, success, network, server, validation
  • Global init via ErrorAesthetics.init()
  • Custom dialog builder support
  • Light and dark themes
  • Ready for pub.dev (null safety, Flutter >=3.10)

Usage

// In main.dart
ErrorAesthetics.init(
  theme: ErrorTheme.dark(),
  defaultOverlay: OverlayType.toast,
);

// Anywhere in UI
ErrorAesthetics.show(
  context,
  'Data saved successfully!',
  type: ErrorType.success,
);

Libraries

error_aesthetics