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
4a117c4a
Commit
4a117c4a
authored
Jul 10, 2018
by
Ponnam Karthik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iOS Release build crash fixed
parent
6deefd06
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
13 deletions
+17
-13
CHANGELOG.md
+4
-0
README.md
+1
-1
ios/Classes/FluttertoastPlugin.m
+11
-11
pubspec.yaml
+1
-1
No files found.
CHANGELOG.md
View file @
4a117c4a
## [2.0.5]
*
iOS Release build error fixed
## [2.0.3]
## [2.0.3]
*
iOs run time error fixed
*
iOs run time error fixed
...
...
README.md
View file @
4a117c4a
...
@@ -32,5 +32,5 @@ toastLength| Toast.LENGTH_SHORT or Toast.LENGTH_LONG (optional)
...
@@ -32,5 +32,5 @@ toastLength| Toast.LENGTH_SHORT or Toast.LENGTH_LONG (optional)
gravity | ToastGravity.TOP (or) ToastGravity.CENTER (or) ToastGravity.BOTTOM
gravity | ToastGravity.TOP (or) ToastGravity.CENTER (or) ToastGravity.BOTTOM
timeInSecForIos | int (only for ios)
timeInSecForIos | int (only for ios)
bgcolor | string (color in hex format)
bgcolor | string (color in hex format)
textcolor:
'#ffffff'
textcolor|
'#ffffff'
ios/Classes/FluttertoastPlugin.m
View file @
4a117c4a
...
@@ -61,19 +61,19 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
...
@@ -61,19 +61,19 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
[[
UIApplication
sharedApplication
].
delegate
.
window
.
rootViewController
.
view
makeToast
:
msg
];
[[
UIApplication
sharedApplication
].
delegate
.
window
.
rootViewController
.
view
makeToast
:
msg
];
}
}
-
(
UIColor
*
)
getUIColorObjectFromHexString
:
(
NSString
*
)
hexStr
alpha
:
(
CGFloat
)
alpha
//
- (UIColor *)getUIColorObjectFromHexString:(NSString *)hexStr alpha:(CGFloat)alpha
{
//
{
// Convert hex string to an integer
// Convert hex string to an integer
unsigned
int
hexint
=
[
self
intFromHexString
:
hexStr
];
//
unsigned int hexint = [self intFromHexString:hexStr];
// Create color object, specifying alpha as well
// Create color object, specifying alpha as well
UIColor
*
color
=
//
UIColor *color =
[
UIColor
colorWithRed
:((
CGFloat
)
((
hexint
&
0xFF0000
)
>>
16
))
/
255
//
[UIColor colorWithRed:((CGFloat) ((hexint & 0xFF0000) >> 16))/255
green
:((
CGFloat
)
((
hexint
&
0xFF00
)
>>
8
))
/
255
//
green:((CGFloat) ((hexint & 0xFF00) >> 8))/255
blue
:
((
CGFloat
)
(
hexint
&
0xFF
))
/
255
//
blue:((CGFloat) (hexint & 0xFF))/255
alpha
:
alpha
];
//
alpha:alpha];
return
color
;
//
return color;
}
//
}
@end
@end
pubspec.yaml
View file @
4a117c4a
name
:
fluttertoast
name
:
fluttertoast
description
:
Toast Library for FLutter
description
:
Toast Library for FLutter
version
:
2.0.
4
version
:
2.0.
5
author
:
Karthik Ponnam <ponnamkarthik3@gmail.com>
author
:
Karthik Ponnam <ponnamkarthik3@gmail.com>
homepage
:
https://github.com/PonnamKarthik/FlutterToast
homepage
:
https://github.com/PonnamKarthik/FlutterToast
...
...
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