sanket-vekariya / flutter_flexible_toast

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Swift 62.9%Language:Kotlin 13.2%Language:Dart 12.7%Language:Ruby 6.9%Language:Java 3.0%Language:Objective-C 1.2%