Commit 4a117c4a by Ponnam Karthik

iOS Release build crash fixed

parent 6deefd06
## [2.0.5]
* iOS Release build error fixed
## [2.0.3]
* iOs run time error fixed
......
......@@ -32,5 +32,5 @@ toastLength| Toast.LENGTH_SHORT or Toast.LENGTH_LONG (optional)
gravity | ToastGravity.TOP (or) ToastGravity.CENTER (or) ToastGravity.BOTTOM
timeInSecForIos | int (only for ios)
bgcolor | string (color in hex format)
textcolor: '#ffffff'
textcolor| '#ffffff'
......@@ -61,19 +61,19 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
[[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
unsigned int hexint = [self intFromHexString:hexStr];
// unsigned int hexint = [self intFromHexString:hexStr];
// Create color object, specifying alpha as well
UIColor *color =
[UIColor colorWithRed:((CGFloat) ((hexint & 0xFF0000) >> 16))/255
green:((CGFloat) ((hexint & 0xFF00) >> 8))/255
blue:((CGFloat) (hexint & 0xFF))/255
alpha:alpha];
return color;
}
// UIColor *color =
// [UIColor colorWithRed:((CGFloat) ((hexint & 0xFF0000) >> 16))/255
// green:((CGFloat) ((hexint & 0xFF00) >> 8))/255
// blue:((CGFloat) (hexint & 0xFF))/255
// alpha:alpha];
// return color;
// }
@end
name: fluttertoast
description: Toast Library for FLutter
version: 2.0.4
version: 2.0.5
author: Karthik Ponnam <ponnamkarthik3@gmail.com>
homepage: https://github.com/PonnamKarthik/FlutterToast
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment