Shifutoast is a Flutter package that allows developers to easily display toast notifications in their apps. Toast notifications are a type of pop-up message that typically appear on the screen and disappear after a short amount of time. They are commonly used to display information, alerts, or confirmations to the user.

One of the advantages of the Shifutoast package is its ability to handle multiple toast messages. With Shifutoast, developers can display multiple toast notifications at once and display them in a queue. This means that if multiple notifications are triggered at the same time, they will be displayed one after the other, rather than overlapping on the screen.

Overall, Shifutoast is a useful package for Flutter developers who want to add toast notifications to their apps without having to write the code from scratch.

Getting started

To use Shifutoast, you need to add it to your pubspec.yaml file:

dependencies:
  shifutoast: latest_version

Then, run flutter pub get to install the package.

Usage

To use Shifutoast in your Flutter app, first import the package:

import 'package:shifutoast/shifutoast.dart';

Then, wrap your AppWidget with ShifuToastProvider like this:

void main() {
  runApp(ShifuToastProvider(
    child: MaterialApp(),
  )
  );
}

And now you can show toast like this:

ToastProvider.of(context).showToast(
  text: "This is ShifuToast",
  style: ToastStyle.minimal,
  type: ToastType.success,
);

License

Shifutoast is released under the MIT License. You can find the full text of the license in the LICENSE file in the root of the repository.

Libraries

shifutoast