Skip to main content

toast_ease 0.0.3 copy "toast_ease: ^0.0.3" to clipboard
toast_ease: ^0.0.3 copied to clipboard

ToastEase: Customizable toast notifications for success, error, warning, and info. Flexible design, no external dependencies, easy integration into Flutter apps.

ToastEase #

A Flutter package to display customizable toast notifications for success, error, warning, and info messages.

Features #

  • Customizable Toasts: Easily display success, error, warning, and info toasts with customizable colors and icons.
  • No External Dependencies: This package does not rely on any external dependencies.
  • Flexible Design: Modify the appearance and behavior of the toasts to fit your app's design.

Getting Started #

Installation #

Add the following to your pubspec.yaml file:

dependencies:
  toast_ease: ^1.0.0

Then, run flutter pub get to install the package.

Import the Package #

Import the package in your Dart file:

import 'package:toast_ease/toast_ease.dart';

Usage #

Displaying a Success Toast #

Success Toast

This is a success toast with a customizable message and appearance.

ToastEase.successToast(
  context: context,
  msg: "This is Success Toast",
);

Displaying an Error Toast #

Error Toast

This is an error toast with customizable error message and appearance.

ToastEase.errorToast(
  context: context,
  msg: "This is Error Toast",
);

Displaying a Warning Toast #

Warning Toast

This is a warning toast with a customizable warning message and appearance.

ToastEase.warningToast(
  context: context,
  msg: "This is Warning Toast",
);

Displaying an Info Toast #

Info Toast

This is an info toast with a customizable info message and appearance.

ToastEase.infoToast(
  context: context,
  msg: "This is Info Toast",
);

Additional Information #

Customization #

You can customize the color and title of the toasts:

ToastEase.warningToast(
  context: context,
  msg: "Custom warning message",
  color: Colors.orange,
  title: "Custom Warning",
);

License #

This package is licensed under the MIT License. See the LICENSE file for more information.


1
likes
150
points
15
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

ToastEase: Customizable toast notifications for success, error, warning, and info. Flexible design, no external dependencies, easy integration into Flutter apps.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on toast_ease