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
36788f1b
Unverified
Commit
36788f1b
authored
Mar 09, 2019
by
Karthik Ponnam
Committed by
GitHub
Mar 09, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #68 from yoavrofe/master
Remove legacy dependencies
parents
ceea6a26
74e10dec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
12 deletions
+9
-12
android/build.gradle
+0
-5
android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java
+7
-3
example/android/app/build.gradle
+0
-2
example/android/gradle/wrapper/gradle-wrapper.properties
+2
-2
No files found.
android/build.gradle
View file @
36788f1b
...
...
@@ -32,8 +32,3 @@ android {
disable
'InvalidPackage'
}
}
dependencies
{
implementation
'androidx.appcompat:appcompat:1.1.0-alpha02'
implementation
'androidx.core:core:1.1.0-alpha04'
}
android/src/main/java/io/github/ponnamkarthik/toast/fluttertoast/FluttertoastPlugin.java
View file @
36788f1b
...
...
@@ -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,8 +87,13 @@ 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
);
if
(
Build
.
VERSION
.
SDK_INT
<=
27
)
{
...
...
example/android/app/build.gradle
View file @
36788f1b
...
...
@@ -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 @
36788f1b
#
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