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

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

A simple and lightweight Flutter package for displaying customizable toast messages.

Features #

  • You can use it with or without context
  • Display toast messages with customizable colors, icons, and images.
  • Supports showing icons or images leading the toast message.
  • Supports Assets and Network images
  • Configurable duration for toast visibility.
  • Hide toast

Getting started #

#add this line to your dependencies
light_toast: ^0.0.7

Then, import the package where you want to use it:

import 'package:light_toast/light_toast.dart';

How to use #

You can use the Toast.show method to display a toast message. Check the code below

Toast.show(
  'Hello, Flutter!',
);

Or with context

Toast.show(
  context: context,
  'Hello, Flutter!',
);

To hide toast

Toast.hide();
4
likes
160
pub points
62%
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