fluttertoast 2.1.5

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

fluttertoast

Android Toast Library for Flutter

Supported Platforms

  • Android
  • IOS

How to Use

# add this line to your dependencies
fluttertoast: ^2.1.5
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
    );
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

Preview Images

[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: ^2.1.5

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
2.1.5 Dec 12, 2018 Go to the documentation of fluttertoast 2.1.5 Download fluttertoast 2.1.5 archive
2.1.4 Dec 9, 2018 Go to the documentation of fluttertoast 2.1.4 Download fluttertoast 2.1.4 archive
2.1.3 Dec 8, 2018 Go to the documentation of fluttertoast 2.1.3 Download fluttertoast 2.1.3 archive
2.1.2 Dec 1, 2018 Go to the documentation of fluttertoast 2.1.2 Download fluttertoast 2.1.2 archive
2.1.1 Nov 17, 2018 Go to the documentation of fluttertoast 2.1.1 Download fluttertoast 2.1.1 archive
2.1.0 Nov 6, 2018 Go to the documentation of fluttertoast 2.1.0 Download fluttertoast 2.1.0 archive
2.0.9 Oct 10, 2018 Go to the documentation of fluttertoast 2.0.9 Download fluttertoast 2.0.9 archive
2.0.8 Sep 28, 2018 Go to the documentation of fluttertoast 2.0.8 Download fluttertoast 2.0.8 archive
2.0.7 Jul 24, 2018 Go to the documentation of fluttertoast 2.0.7 Download fluttertoast 2.0.7 archive
2.0.6 Jul 10, 2018 Go to the documentation of fluttertoast 2.0.6 Download fluttertoast 2.0.6 archive

All 17 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]
95
Learn more about scoring.

We analyzed this package on Dec 12, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7
  • Flutter: 1.0.0

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

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
Transitive dependencies
collection 1.14.11
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8