Skip to main content

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

outdated

ToastEase is a Flutter package that provides customizable toast notifications for success, error, warning, and info messages. It offers a flexible design with no external dependencies, allowing you to [...]

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 #

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

Displaying an Error Toast #

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

Displaying a Warning Toast #

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

Displaying an Info Toast #

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
0
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

ToastEase is a Flutter package that provides customizable toast notifications for success, error, warning, and info messages. It offers a flexible design with no external dependencies, allowing you to easily integrate it into your Flutter applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on toast_ease