Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
548c78c3
E
engine
项目概览
weixin_43355755
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
548c78c3
编写于
6月 04, 2021
作者:
X
xubaolin
提交者:
GitHub
6月 03, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix a LateInitializationError (#26492)
上级
f21e64f5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
1 deletion
+17
-1
lib/web_ui/lib/src/engine/text_editing/text_editing.dart
lib/web_ui/lib/src/engine/text_editing/text_editing.dart
+10
-1
lib/web_ui/test/text_editing_test.dart
lib/web_ui/test/text_editing_test.dart
+7
-0
未找到文件。
lib/web_ui/lib/src/engine/text_editing/text_editing.dart
浏览文件 @
548c78c3
...
...
@@ -1487,6 +1487,14 @@ class TextInputSetCaretRect extends TextInputCommand {
}
}
class
TextInputRequestAutofill
extends
TextInputCommand
{
const
TextInputRequestAutofill
();
void
run
(
HybridTextEditing
textEditing
)
{
// No-op: not supported on this platform.
}
}
class
TextInputFinishAutofillContext
extends
TextInputCommand
{
TextInputFinishAutofillContext
({
required
this
.
saveForm
,
...
...
@@ -1544,7 +1552,7 @@ class TextEditingChannel {
ByteData
?
data
,
ui
.
PlatformMessageResponseCallback
?
callback
)
{
const
JSONMethodCodec
codec
=
JSONMethodCodec
();
final
MethodCall
call
=
codec
.
decodeMethodCall
(
data
);
late
final
TextInputCommand
command
;
final
TextInputCommand
command
;
switch
(
call
.
method
)
{
case
'TextInput.setClient'
:
command
=
TextInputSetClient
(
...
...
@@ -1595,6 +1603,7 @@ class TextEditingChannel {
// There's no API to request autofill on the web. Instead we let the
// browser show autofill options automatically, if available. We
// therefore simply ignore this message.
command
=
const
TextInputRequestAutofill
();
break
;
case
'TextInput.finishAutofillContext'
:
...
...
lib/web_ui/test/text_editing_test.dart
浏览文件 @
548c78c3
...
...
@@ -435,6 +435,13 @@ void testMain() {
textEditing
=
null
;
});
test
(
'TextInput.requestAutofill'
,
()
async
{
final
MethodCall
requestAutofill
=
MethodCall
(
'TextInput.requestAutofill'
);
sendFrameworkMessage
(
codec
.
encodeMethodCall
(
requestAutofill
));
//No-op and without crashing.
});
test
(
'setClient, show, setEditingState, hide'
,
()
{
final
MethodCall
setClient
=
MethodCall
(
'TextInput.setClient'
,
<
dynamic
>[
123
,
flutterSinglelineConfig
]);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录