. Package for Displaying Stylish Toast Notifications in Flutter - Flutter4U
Package for Displaying Stylish Toast Notifications in Flutter - Flutter4U
Package for Displaying Stylish Toast Notifications in Flutter - Flutter4U

Toast Notifications in Flutter – Flutter Notie

A Flutter package for displaying stylish toast notifications with ease.

Features

  • Smooth slide-up animations.
  • Pre-defined toast styles: success, info, warning, error, and default.
  • Customizable duration for the toast to stay on the screen.

Installation

To add flutter_notie to your package’s pubspec.yaml file:

dependencies: flutter_notie: ^0.0.6

Then install packages from the command line:

flutter pub get

Usage

To use flutter_notie , simply call one of its static methods in your code:

// Import the package. import 'package:flutter_notie/flutter_notie.dart'; // Show a success toast notification. FlutterNotie.success(context, message: 'This was successful!'); // Show an info toast notification. FlutterNotie.info(context, message: 'Some information for you.'); // Show a warning toast notification. FlutterNotie.warning(context, message: 'Be careful!'); // Show an error toast notification. FlutterNotie.error(context, message: 'Oops, something went wrong.'); // Show a default toast notification. FlutterNotie.defaultNotie(context, message: 'Just a regular notification.'); // Show a taost notification with a custom duration. FlutterNotie.success(context, message: 'This was successful!', duration: Duration(seconds: 5));

Screenshots

Credit

Spread the love See also Country Code Picker in Flutter You Might Also Like Customizable Animated Toast in Flutter December 14, 2023 A Really Easy to Use Flutter Toast Library December 12, 2023 A Flutter Toast Plugin Example December 12, 2023 Leave a Reply Cancel reply Recent Posts
  • News app using Flutter Bloc Pattern
  • A Highly Customize Toast with Flutter
  • Package for Displaying Stylish Toast Notifications in Flutter
  • Flutterzon – Amazon Clone Flutter Using Bloc
  • Customizable Flutter Toast Message Example
Categories About Us

Flutter4U.com is the newly launched platform where you can learn flutter easily. Flutter4U.com offers fresh content that’s useful and informative for its readers. It delivers the latest flutter projects and updates on flutter technology.

Recent Post
  • News app using Flutter Bloc Pattern
  • A Highly Customize Toast with Flutter
  • Package for Displaying Stylish Toast Notifications in Flutter
  • Flutterzon – Amazon Clone Flutter Using Bloc
  • Customizable Flutter Toast Message Example
📎📎📎📎📎📎📎📎📎📎