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
a8ec8c5d
Commit
a8ec8c5d
authored
Dec 02, 2018
by
Ben Getsug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attempt fixing ios background color
parent
15cb1414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
lib/fluttertoast.dart
+11
-9
No files found.
lib/fluttertoast.dart
View file @
a8ec8c5d
...
...
@@ -12,13 +12,14 @@ class Fluttertoast {
static
const
MethodChannel
_channel
=
const
MethodChannel
(
'PonnamKarthik/fluttertoast'
);
static
Future
<
String
>
showToast
(
{
@required
String
msg
,
Toast
toastLength
,
int
timeInSecForIos
=
1
,
ToastGravity
gravity
,
Color
backgroundColor
,
Color
textColor
})
async
{
static
Future
<
String
>
showToast
({
@required
String
msg
,
Toast
toastLength
,
int
timeInSecForIos
=
1
,
ToastGravity
gravity
,
Color
backgroundColor
,
Color
textColor
,
})
async
{
String
toast
=
"short"
;
if
(
toastLength
==
Toast
.
LENGTH_LONG
)
{
toast
=
"long"
;
...
...
@@ -38,8 +39,9 @@ class Fluttertoast {
'length'
:
toast
,
'time'
:
timeInSecForIos
,
'gravity'
:
gravityToast
,
'bgcolor'
:
backgroundColor
.
value
.
toString
()
??
"null"
,
'textcolor'
:
textColor
.
value
.
toString
()
??
"null"
'bgcolor'
:
backgroundColor
!=
null
?
backgroundColor
.
value
.
toString
()
:
"null"
,
'textcolor'
:
textColor
!=
null
?
textColor
.
value
.
toString
()
:
"null"
};
String
res
=
await
_channel
.
invokeMethod
(
'showToast'
,
params
);
return
res
;
...
...
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