fluttertoast 3.1.3
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.1.3
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
);
property | description |
---|---|
msg | String (Not Null)(required) |
toastLength | Toast.LENGTH_SHORT or Toast.LENGTH_LONG (optional) |
gravity | ToastGravity.TOP (or) ToastGravity.CENTER (or) ToastGravity.BOTTOM |
timeInSecForIos | int (only for ios) |
bgcolor | Colors.red |
textcolor | Colors.white |
fontSize | 16.0 (float) |
To cancel all the toasts call #
Fluttertoast.cancel()
Preview Images #




If you need any features suggest #
[3.1.3]
- Toast optimized for Android
[3.1.2]
- Flutter analysis failed fixed
[3.1.1]
- Not Compiling in android (issue with AndroidX)
[3.1.0]
- Migrated to AndroidX
##[3.0.6]
- iOS build failed fixed
[3.0.5]
- deprecation fixed
- hope ios notch fixed
[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
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.1.3
2. Install it
You can install packages from the command line:
with Flutter:
$ flutter pub get
Alternatively, your editor might support flutter pub 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';
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
100
|
Health:
Code health derived from static analysis.
[more]
|
99
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
100
|
Overall:
Weighted score of the above.
[more]
|
100
|
We analyzed this package on Dec 10, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.0
- pana: 0.13.1+4
- Flutter: 1.12.13+hotfix.4
Health issues and suggestions
Document public APIs. (-1 points)
14 out of 14 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
Dependencies
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=2.0.0-dev.68.0 <3.0.0 | ||
flutter | 0.0.0 | ||
Transitive dependencies | |||
collection | 1.14.11 | 1.14.12 | |
meta | 1.1.8 | ||
sky_engine | 0.0.99 | ||
typed_data | 1.1.6 | ||
vector_math | 2.0.8 |