Commit 7bf9e808 by YaoShuwei Committed by GitHub

fix error in flutter 0.9.7

parent 1f6db1b0
......@@ -36,11 +36,11 @@ class FluttertoastPlugin(context: Context) : MethodCallHandler {
if (call.method == "showToast") {
val msg: String = call.argument("msg")
val length: String = call.argument("length")
val gravity: String = call.argument("gravity")
val bgcolor: String = call.argument("bgcolor")
val textcolor: String = call.argument("textcolor")
val msg = call.argument<String>("msg")
val length = call.argument<String>("length")
val gravity = call.argument<String>("gravity")
val bgcolor = call.argument<String>("bgcolor")
val textcolor = call.argument<String>("textcolor")
val toast: Toast = Toast.makeText(ctx, msg, Toast.LENGTH_SHORT);
toast.setText(msg)
......
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