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
74e10dec
Commit
74e10dec
authored
Feb 25, 2019
by
Yoav Rofe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove legacy libraries
parent
36eea33e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java
+6
-2
example/android/app/build.gradle
+0
-2
example/android/gradle/wrapper/gradle-wrapper.properties
+2
-2
No files found.
android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java
View file @
74e10dec
...
...
@@ -11,7 +11,6 @@ import android.view.View;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
androidx.core.content.ContextCompat
;
import
io.flutter.plugin.common.MethodCall
;
import
io.flutter.plugin.common.MethodChannel
;
import
io.flutter.plugin.common.MethodChannel.MethodCallHandler
;
...
...
@@ -88,7 +87,12 @@ public class FluttertoastPlugin implements MethodCallHandler {
if
(
bgcolor
!=
null
)
{
Drawable
shapeDrawable
=
ContextCompat
.
getDrawable
(
ctx
,
R
.
drawable
.
toast_bg
);
Drawable
shapeDrawable
;
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
LOLLIPOP
)
{
shapeDrawable
=
ctx
.
getResources
().
getDrawable
(
R
.
drawable
.
toast_bg
,
ctx
.
getTheme
());
}
else
{
shapeDrawable
=
ctx
.
getResources
().
getDrawable
(
R
.
drawable
.
toast_bg
);
}
if
(
shapeDrawable
!=
null
)
{
shapeDrawable
.
setColorFilter
(
bgcolor
.
intValue
(),
PorterDuff
.
Mode
.
SRC_IN
);
...
...
example/android/app/build.gradle
View file @
74e10dec
...
...
@@ -58,6 +58,4 @@ dependencies {
testImplementation
'junit:junit:4.12'
androidTestImplementation
'androidx.test:runner:1.1.2-alpha01'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.1.2-alpha01'
implementation
'androidx.appcompat:appcompat:1.1.0-alpha02'
implementation
'androidx.legacy:legacy-support-v4:1.0.0'
}
example/android/gradle/wrapper/gradle-wrapper.properties
View file @
74e10dec
#
Thu Dec 20 12:42:32 IST 2018
#
Mon Feb 25 01:11:37 IST 2019
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
6
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
10.1
-all.zip
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