Giter Club home page Giter Club logo

flutter_simple_toast's Introduction

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

timeline_tree

• 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

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

dependencies:
  simple_toast: ^0.0.1

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';
  SimpleToast.showInfoToast(context, "Info Title", "Information displayed on info");
  SimpleToast.showSuccessToast(context, "Success Title", "Information displayed on success");
  SimpleToast.showErrorToast(context, "Error Title", "Information displayed on error");

flutter_simple_toast's People

Contributors

samsonroyal avatar bright2kwame avatar

Stargazers

Adama Jarju avatar Kossi ADANOU avatar Sila Kironji avatar Elizabeth Oyinlade Ojesanmi avatar Ben Mukanirwa avatar Tafadzwa Choga avatar Bernard Addy-Sackey avatar  avatar  avatar

Watchers

 avatar

flutter_simple_toast's Issues

Feat: Support for Null Safety as regards Dart SDK 3.2.4

[App name] flutter pub add simple_toast
The current Dart SDK version is 3.2.4.

Because flutter_mobile_app depends on simple_toast any which doesn't support null safety, version solving failed.

The lower bound of "sdk: '>=2.2.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety
exit code 65

I received the above error when trying to use the package in one of my apps. We need to add null safety

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.