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
5c9be270
Commit
5c9be270
authored
Aug 30, 2020
by
Karthik Ponnam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iOS Build Failed Fix 7.0.4
parent
071defcd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
7 deletions
+14
-7
CHANGELOG.md
+5
-0
README.md
+1
-1
example/pubspec.lock
+1
-1
ios/Classes/FluttertoastPlugin.m
+6
-4
pubspec.yaml
+1
-1
No files found.
CHANGELOG.md
View file @
5c9be270
## [7.0.4]
-
iOS Build Failed Fixed #218
-
Fixed Cancel Toasts in iOS
## [7.0.3]
-
FToast now Fade when showing and hiding the toast
...
...
README.md
View file @
5c9be270
...
...
@@ -32,7 +32,7 @@ This one has limited features and no control over UI
```
yaml
# add this line to your dependencies
fluttertoast
:
^7.0.
3
fluttertoast
:
^7.0.
4
```
```
dart
...
...
example/pubspec.lock
View file @
5c9be270
...
...
@@ -78,7 +78,7 @@ packages:
path: ".."
relative: true
source: path
version: "7.0.
3
"
version: "7.0.
4
"
matcher:
dependency: transitive
description:
...
...
ios/Classes/FluttertoastPlugin.m
View file @
5c9be270
...
...
@@ -61,7 +61,8 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
-
(
void
)
handleMethodCall
:
(
FlutterMethodCall
*
)
call
result
:
(
FlutterResult
)
result
{
if
([
@"cancel"
isEqualToString
:
call
.
method
])
{
[[
UIApplication
sharedApplication
].
delegate
.
window
.
rootViewController
.
view
hideAllToasts
];
__weak
typeof
(
self
)
weakSelf
=
self
;
[[
weakSelf
_readKeyWindow
]
hideAllToasts
];
result
([
NSNumber
numberWithBool
:
true
]);
}
else
if
([
@"showToast"
isEqualToString
:
call
.
method
])
{
NSString
*
msg
=
call
.
arguments
[
@"msg"
];
...
...
@@ -71,10 +72,11 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
NSNumber
*
textcolor
=
call
.
arguments
[
@"textcolor"
];
NSNumber
*
size
=
call
.
arguments
[
@"size"
];
NSNumber
*
fontSize
=
call
.
arguments
[
@"fontSize"
];
if
(
fontSize
==
nil
)
{
fontSize
=
16
.
0
;
if
([
fontSize
isKindOfClass
:[
NSNull
class
]]
)
{
fontSize
=
[[
NSNumber
alloc
]
initWithInt
:
16
]
;
}
CGFloat
cgf
=
[
fontSize
doubleValue
];
int
time
=
1
;
@try
{
...
...
pubspec.yaml
View file @
5c9be270
name
:
fluttertoast
description
:
Toast Library for Flutter, Easily create toast messages in single line of code
version
:
7.0.
3
version
:
7.0.
4
homepage
:
https://github.com/PonnamKarthik/FlutterToast
issue_tracker
:
https://github.com/ponnamkarthik/FlutterToast/issues
...
...
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