Commit 7b837cbe by Zac Chan

Changed sizing

parent e5db8555
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
android:color="#000000"> android:color="#000000">
</solid> </solid>
<padding <padding
android:left="24dp" android:left="10dp"
android:top="15dp" android:top="8dp"
android:right="24dp" android:right="10dp"
android:bottom="15dp" /> android:bottom="8dp" />
</shape> </shape>
\ No newline at end of file
...@@ -46,6 +46,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast"; ...@@ -46,6 +46,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
NSNumber *size = call.arguments[@"size"]; NSNumber *size = call.arguments[@"size"];
NSNumber *fontSize = call.arguments[@"fontSize"]; NSNumber *fontSize = call.arguments[@"fontSize"];
CGFloat cgf = [fontSize doubleValue];
int time = 1; int time = 1;
@try { @try {
time = [durationTime intValue]; time = [durationTime intValue];
...@@ -58,7 +59,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast"; ...@@ -58,7 +59,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
CSToastStyle *style = [[CSToastStyle alloc] initWithDefaultStyle]; CSToastStyle *style = [[CSToastStyle alloc] initWithDefaultStyle];
style.messageFont = [UIFont systemFontOfSize:fontSize]; style.messageFont = [UIFont systemFontOfSize:cgf];
style.backgroundColor = [self colorWithHex:bgcolor.unsignedIntegerValue]; style.backgroundColor = [self colorWithHex:bgcolor.unsignedIntegerValue];
style.messageColor = [self colorWithHex:textcolor.unsignedIntegerValue]; style.messageColor = [self colorWithHex:textcolor.unsignedIntegerValue];
......
...@@ -475,7 +475,7 @@ static const NSString * CSToastQueueKey = @"CSToastQueueKey"; ...@@ -475,7 +475,7 @@ static const NSString * CSToastQueueKey = @"CSToastQueueKey";
self.maxWidthPercentage = 0.8; self.maxWidthPercentage = 0.8;
self.maxHeightPercentage = 0.8; self.maxHeightPercentage = 0.8;
self.horizontalPadding = 10.0; self.horizontalPadding = 10.0;
self.verticalPadding = 10.0; self.verticalPadding = 8.0;
self.cornerRadius = 10.0; self.cornerRadius = 10.0;
self.titleFont = [UIFont boldSystemFontOfSize:16.0]; self.titleFont = [UIFont boldSystemFontOfSize:16.0];
self.messageFont = [UIFont systemFontOfSize:16.0]; self.messageFont = [UIFont systemFontOfSize:16.0];
......
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