未验证 提交 ca7623eb 编写于 作者: J Jason Simmons 提交者: GitHub

Handle null values in TextInputConfiguration.actionLabel JSON (#8377)

Fixes https://github.com/flutter/flutter/issues/29798
上级 d0239bd8
......@@ -242,7 +242,7 @@ public class TextInputChannel {
TextCapitalization.fromValue(json.getString("textCapitalization")),
InputType.fromJson(json.getJSONObject("inputType")),
inputAction,
json.optString("actionLabel")
json.isNull("actionLabel") ? null : json.getString("actionLabel")
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册