light_toast 0.0.8 copy "light_toast: ^0.0.8" to clipboard
light_toast: ^0.0.8 copied to clipboard

A lightweight Flutter package for displaying customizable toast messageswith support for icons, images, and configurable durations.

Light Toast is a simple, lightweight, and highly customizable Flutter package designed to display beautiful toast notifications within your Flutter applications. Enhance your app's user experience with eye-catching and informative toast messages.

Features #

  • Contextual Flexibility: Use Light Toast with or without a BuildContext for seamless integration.
  • Customization: Personalize your toast messages with a wide range of colors, icons, and images (both asset-based and network-based).
  • Visual Appeal: Choose to display icons or images alongside your toast text for added impact.
  • Timing Control: Adjust the duration of your toast messages for optimal visibility.
  • On-Demand Dismissal: Easily hide toast messages when needed.

Getting started #

  1. Add Dependency: Include the following in your project's pubspec.yaml file:
dependencies:
  light_toast: ^0.0.8
  1. Import: Add the import statement to your Dart files:
import 'package:light_toast/light_toast.dart';

How to use #

Or with context

// Simple usage
Toast.show('Hello, Flutter!');

// Usage with BuildContext
Toast.show(context: context, 'Hello, Flutter!');

// To hide a toast:
Toast.hide();
4
likes
160
pub points
54%
popularity

Publisher

unverified uploader

A lightweight Flutter package for displaying customizable toast messageswith support for icons, images, and configurable durations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, get

More

Packages that depend on light_toast