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
da7609f5
Commit
da7609f5
authored
Dec 01, 2018
by
Karthik Ponnam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*iOS Color Fix
* Background color fix in PIE
parent
969c563d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
+12
-3
CHANGELOG.md
+5
-0
README.md
+1
-1
android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java
+5
-1
pubspec.yaml
+1
-1
res/values/strings_en.arb
+0
-0
No files found.
CHANGELOG.md
View file @
da7609f5
## [2.1.2]
*
iOS Color Fix
*
Background color fix in PIE
## [2.1.1]
## [2.1.1]
*
Background color does not fill the whole Toast fixed
*
Background color does not fill the whole Toast fixed
...
...
README.md
View file @
da7609f5
...
@@ -11,7 +11,7 @@ Android Toast Library for Flutter
...
@@ -11,7 +11,7 @@ Android Toast Library for Flutter
```
yaml
```
yaml
# add this line to your dependencies
# add this line to your dependencies
fluttertoast
:
^2.1.
1
fluttertoast
:
^2.1.
2
```
```
```
dart
```
dart
...
...
android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java
View file @
da7609f5
...
@@ -11,6 +11,7 @@ import android.graphics.Paint;
...
@@ -11,6 +11,7 @@ import android.graphics.Paint;
import
android.graphics.drawable.ColorDrawable
;
import
android.graphics.drawable.ColorDrawable
;
import
android.graphics.drawable.ShapeDrawable
;
import
android.graphics.drawable.ShapeDrawable
;
import
android.graphics.drawable.shapes.RoundRectShape
;
import
android.graphics.drawable.shapes.RoundRectShape
;
import
android.os.Build
;
import
android.view.Gravity
;
import
android.view.Gravity
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
android.widget.Toast
;
...
@@ -76,8 +77,11 @@ public class FluttertoastPlugin implements MethodCallHandler {
...
@@ -76,8 +77,11 @@ public class FluttertoastPlugin implements MethodCallHandler {
shapeDrawable
.
getPaint
().
setAntiAlias
(
true
);
shapeDrawable
.
getPaint
().
setAntiAlias
(
true
);
shapeDrawable
.
getPaint
().
setFlags
(
Paint
.
ANTI_ALIAS_FLAG
);
shapeDrawable
.
getPaint
().
setFlags
(
Paint
.
ANTI_ALIAS_FLAG
);
if
(
android
.
os
.
Build
.
VERSION
.
SDK_INT
<=
27
)
{
toast
.
getView
().
setBackground
(
shapeDrawable
);
toast
.
getView
().
setBackground
(
shapeDrawable
);
// text.setBackground(shapeDrawable);
}
else
{
text
.
setBackground
(
shapeDrawable
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
pubspec.yaml
View file @
da7609f5
name
:
fluttertoast
name
:
fluttertoast
description
:
Toast Library for FLutter
description
:
Toast Library for FLutter
version
:
2.1.
1
version
:
2.1.
2
author
:
Karthik Ponnam <ponnamkarthik3@gmail.com>
author
:
Karthik Ponnam <ponnamkarthik3@gmail.com>
homepage
:
https://github.com/PonnamKarthik/FlutterToast
homepage
:
https://github.com/PonnamKarthik/FlutterToast
...
...
res/values/strings_en.arb
0 → 100644
View file @
da7609f5
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