simple_toast_message 0.0.4 copy "simple_toast_message: ^0.0.4" to clipboard
simple_toast_message: ^0.0.4 copied to clipboard

A simple way to display messsage within a short time and dismiss it.

Elevate your Dart application's user experience with our lightweight and intuitive Toast Plugin. Designed for simplicity and efficiency, this plugin empowers developers to effortlessly display toast messages that automatically dismiss, providing a seamless way to communicate essential information to users.

This is inspired by the app at https://schoolofnewafrica.com/. All the credit to my product design lead Tagoe Kingston (https://dribbble.com/niimantse), who is the brain behind the UI concept.

Features #

simple_toast_message

• Easy Integration: Swiftly integrate toast notifications into your Dart applications with minimal setup. Our plugin is designed for hassle-free implementation, saving you valuable development time.

• Automatic Dismissal: Say goodbye to manual dismissals. Our Toast Plugin is equipped with automatic dismissal
functionality, ensuring that your toast messages gracefully fade away after a customizable duration.

• Customization Options: Tailor the appearance of your toast messages to align with your application's aesthetics. Customize text, background color, duration, and more to create a seamless and branded user experience.

• Responsive Design: Whether you're developing for mobile, web, or desktop, our plugin adapts seamlessly to various screen sizes and resolutions, ensuring a consistent and visually appealing toast experience across platforms.

Getting started #

To install the package, run this command:

 $ flutter pub add simple_toast_message

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  simple_toast_message: ^0.0.4

Import it and use it in your dart code:

import 'package:simple_toast/simple_toast.dart';

Usage #

Simple Toast

• Show information, you invoke this by calling info toast

 SimpleToast.showInfoToast();

• Show error message, this presents error message

 SimpleToast.showErrorToast();

• Show success message, this presents success message

 SimpleToast.showSuccessToast();

Example #

• Import the package

 //import the plugin
 import 'package:simple_toast/simple_toast.dart';

• Information usecase

SimpleToast.showInfoToast(context, "Info Title", "Information displayed on info");

• Success usecase

SimpleToast.showSuccessToast(context, "Success Title", "Information displayed on success");

• Error usecase

SimpleToast.showErrorToast(context, "Error Title", "Information displayed on error");
6
likes
0
pub points
50%
popularity

Publisher

verified publisherbrightahedor.me

A simple way to display messsage within a short time and dismiss it.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on simple_toast_message