Search packages, repositories and app categories

Package detailsv0.1.4

flutter_flexible_toast

A Powerful Toast Library for Flutter, Easily create toast messages in single line of code with leading image options.

30-day downloads
46
Likes
37
Pub points
40

Install package

flutter pub add flutter_flexible_toast

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A lightweight and customizable toast library for Flutter that enables developers to display toast messages with minimal code. Supports optional leading images for visual feedback, making it ideal for conveying status updates or user notifications. The package is designed for simplicity, allowing a single-line implementation for quick integration into any Flutter app. It enhances user experience by providing timely, non-intrusive feedback.

Use cases

  • Displaying success or error messages
  • Showing quick user feedback
  • Enhancing UI with visual cues
  • Implementing status indicators
  • Adding branded toast notifications

Key features

  • Single-line toast creation
  • Support for leading images
  • Customizable appearance
  • Lightweight and fast
  • Easy integration with existing projects

Suitable for

  • Simple notification needs
  • Apps requiring quick feedback
  • Developers seeking minimal setup
  • UI-focused applications
  • Projects with tight deadlines

Considerations

  • Limited customization beyond basic styling
  • No built-in support for animations
  • Depends on platform-specific rendering
  • Not suitable for complex message layouts
  • May require additional styling for advanced use cases

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_flexible_toast

Toast Library for Flutter.

How to Use

just add below in pubspec.yaml

flutter_flexible_toast: ^0.1.4
import 'package:flutter_flexible_toast/flutter_flexible_toast.dart';
FlutterFlexibleToast.showToast(
    message: "Short Loading 2 Sec Toast",
    toastLength: Toast.LENGTH_LONG,
    toastGravity: ToastGravity.BOTTOM,
    icon: ICON.LOADING,
    radius: 100,
    elevation: 10,
    imageSize: 35,
    textColor: Colors.white,
    backgroundColor: Colors.black,
    timeInSeconds: 2
);
To cancel all the toasts call
FlutterFlexibleToast.cancel();
Preview Screenshots

short_info_one_second_toast

For More Info

Email : android : ssvekariya11@gmail.com
Email : ios : on iospareshse@gmail.com

Categories

Source repository

Projects using this package

No data available yet.