fluttertoast 3.0.4

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 96

fluttertoast #

Android and iOS Toast Library for Flutter

Supported Platforms

  • Android
  • IOS

If you dont want to use androidx then use fluttertoast version 2.2.11

How to Use #

# add this line to your dependencies
fluttertoast: ^3.0.4
import 'package:fluttertoast/fluttertoast.dart';
Fluttertoast.showToast(
        msg: "This is Center Short Toast",
        toastLength: Toast.LENGTH_SHORT,
        gravity: ToastGravity.CENTER,
        timeInSecForIos: 1,
        backgroundColor: Colors.red,
        textColor: Colors.white,
        fontSize: 16.0
    );
propertydescription
msgString (Not Null)(required)
toastLengthToast.LENGTH_SHORT or Toast.LENGTH_LONG (optional)
gravityToastGravity.TOP (or) ToastGravity.CENTER (or) ToastGravity.BOTTOM
timeInSecForIosint (only for ios)
bgcolorColors.red
textcolorColors.white
fontSize16.0 (float)

To cancel all the toasts call #

Fluttertoast.cancel()

Preview Images #

If you need any features suggest #

[3.0.4]

  • Android Color fix

[3.0.3]

  • fixed Android Toast.LENGTH_*

[3.0.2]

  • fixed #70 #71

[3.0.1]

  • Release build failed fix
  • Multiline text android fix

[3.0.0]

  • Migrated to AndroidX

[2.2.12]

  • Incomplete Text Fix

[2.2.11]

  • Incomplete Text Fix

[2.2.10]

  • iOS build Failed fix

[2.2.9]

  • iOS build Failed fix

[2.2.8]

  • Fluttertoast.cancel() added
  • FlutterToast Implementation revert back to previous

[2.2.7]

  • FontSize Can be changed
  • FlutterToast Implementation Changed to FlutterToast.instance

[2.2.6]

  • removed androidx

[2.2.5]

  • Cannot build because of dependency w/ v28 #47

[2.2.4]

  • androidX crash fix #45

[2.2.3]

  • iOS Crash fix #41 & #39

[2.2.1]

  • default toast style fix #38

[2.2.0]

  • Background color fixed #29

[2.1.5]

  • Merged PR #36 - Fix Number Cast Error for issue #35

[2.1.4]

  • Merged PR #32

[2.1.2]

  • iOS Color Fix
  • Background color fix in PIE

[2.1.1]

  • Background color does not fill the whole Toast fixed

[2.1.0]

  • build error fixed

[2.0.9]

  • fix error in flutter 0.9.7

[2.0.8]

  • Build failed with an exception fixed
  • The plugin calls the build of the previous widget fixed
  • Screenshots added

[2.0.7]

  • Text background fix for android

[2.0.6]

  • iOS Release build error fixed

[2.0.3]

  • iOs run time error fixed

[2.0.2]

  • iOs build error fixed

[2.0.1]

  • Ios Support added
  • option for setting toast gravity (top, center, bottom)

[1.0.1]

  • Initial Open Sources
  • show Toast in Android

example/README.md

fluttertoast_example #

Demonstrates how to use the fluttertoast plugin.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  fluttertoast: ^3.0.4

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:fluttertoast/fluttertoast.dart';
  
Version Uploaded Documentation Archive
3.0.4 Apr 18, 2019 Go to the documentation of fluttertoast 3.0.4 Download fluttertoast 3.0.4 archive
3.0.3 Mar 9, 2019 Go to the documentation of fluttertoast 3.0.3 Download fluttertoast 3.0.3 archive
3.0.2 Mar 9, 2019 Go to the documentation of fluttertoast 3.0.2 Download fluttertoast 3.0.2 archive
3.0.1 Feb 20, 2019 Go to the documentation of fluttertoast 3.0.1 Download fluttertoast 3.0.1 archive
3.0.0 Feb 12, 2019 Go to the documentation of fluttertoast 3.0.0 Download fluttertoast 3.0.0 archive
2.2.11 Jan 26, 2019 Go to the documentation of fluttertoast 2.2.11 Download fluttertoast 2.2.11 archive
2.2.10 Jan 25, 2019 Go to the documentation of fluttertoast 2.2.10 Download fluttertoast 2.2.10 archive
2.2.9 Jan 25, 2019 Go to the documentation of fluttertoast 2.2.9 Download fluttertoast 2.2.9 archive
2.2.8 Jan 25, 2019 Go to the documentation of fluttertoast 2.2.8 Download fluttertoast 2.2.8 archive
2.2.7 Jan 23, 2019 Go to the documentation of fluttertoast 2.2.7 Download fluttertoast 2.2.7 archive

All 34 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
99
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
96
Learn more about scoring.

We analyzed this package on Apr 18, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/fluttertoast.dart.

Run flutter format to format lib/fluttertoast.dart.

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
meta ^1.1.6 1.1.6 1.1.7
Transitive dependencies
collection 1.14.11
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8