Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fluttertoast
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyanzhi
fluttertoast
Commits
c3565732
Commit
c3565732
authored
Jan 23, 2019
by
Karthik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
00c74faa
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
9 deletions
+16
-9
CHANGELOG.md
+5
-0
README.md
+5
-3
example/lib/main.dart
+5
-5
pubspec.yaml
+1
-1
No files found.
CHANGELOG.md
View file @
c3565732
## [2.2.7]
*
FontSize Can be changed
*
FlutterToast Implementation Changed to
`FlutterToast.instance`
## [2.2.6]
*
removed androidx
...
...
README.md
View file @
c3565732
...
...
@@ -13,7 +13,7 @@ If your project uses androidx then use `fluttertoast` version `2.2.4` or `2.2.5`
```
yaml
# add this line to your dependencies
fluttertoast
:
^2.2.
6
fluttertoast
:
^2.2.
7
```
```
dart
...
...
@@ -21,13 +21,14 @@ import 'package:fluttertoast/fluttertoast.dart';
```
```
dart
Fluttertoast
.
showToast
(
Fluttertoast
.
instance
.
showToast
(
msg:
"This is Center Short Toast"
,
toastLength:
Toast
.
LENGTH_SHORT
,
gravity:
ToastGravity
.
CENTER
,
timeInSecForIos:
1
,
backgroundColor:
Colors
.
red
,
textColor:
Colors
.
white
textColor:
Colors
.
white
,
fontSize:
16.0
);
```
...
...
@@ -39,6 +40,7 @@ gravity | ToastGravity.TOP (or) ToastGravity.CENTER (or) ToastGravity.BOTTOM
timeInSecForIos | int (only for ios)
bgcolor | Colors.red
textcolor| Colors.white
fontSize | 16.0 (float)
## Preview Images
...
...
example/lib/main.dart
View file @
c3565732
...
...
@@ -15,14 +15,14 @@ class _MyAppState extends State<MyApp> {
}
void
showLongToast
()
{
Fluttertoast
.
showToast
(
Fluttertoast
.
instance
.
showToast
(
msg:
"This is Long Toast"
,
toastLength:
Toast
.
LENGTH_LONG
,
);
}
void
showColoredToast
()
{
Fluttertoast
.
showToast
(
Fluttertoast
.
instance
.
showToast
(
msg:
"This is Colored Toast"
,
toastLength:
Toast
.
LENGTH_SHORT
,
backgroundColor:
Colors
.
red
,
...
...
@@ -30,14 +30,14 @@ class _MyAppState extends State<MyApp> {
}
void
showShortToast
()
{
Fluttertoast
.
showToast
(
Fluttertoast
.
instance
.
showToast
(
msg:
"This is Short Toast"
,
toastLength:
Toast
.
LENGTH_SHORT
,
timeInSecForIos:
1
);
}
void
showTopShortToast
()
{
Fluttertoast
.
showToast
(
Fluttertoast
.
instance
.
showToast
(
msg:
"This is Top Short Toast"
,
toastLength:
Toast
.
LENGTH_SHORT
,
gravity:
ToastGravity
.
TOP
,
...
...
@@ -45,7 +45,7 @@ class _MyAppState extends State<MyApp> {
}
void
showCenterShortToast
()
{
Fluttertoast
.
showToast
(
Fluttertoast
.
instance
.
showToast
(
msg:
"This is Center Short Toast"
,
toastLength:
Toast
.
LENGTH_SHORT
,
gravity:
ToastGravity
.
CENTER
,
...
...
pubspec.yaml
View file @
c3565732
name
:
fluttertoast
description
:
Toast Library for FLutter
version
:
2.2.
6
version
:
2.2.
7
author
:
Karthik Ponnam <ponnamkarthik3@gmail.com>
homepage
:
https://github.com/PonnamKarthik/FlutterToast
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment