Commit 5fdf44dc authored by Luke's avatar Luke Committed by justin

修复iOS 无障碍问题

flutter 页面 连续push的时候,后面的flutter页面的voice over焦点会丢失
parent 06c9956f
...@@ -225,8 +225,7 @@ class ContainerCoordinator { ...@@ -225,8 +225,7 @@ class ContainerCoordinator {
FlutterBoost.containerManager FlutterBoost.containerManager
?.showContainer(_createContainerSettings(name, params, pageId)); ?.showContainer(_createContainerSettings(name, params, pageId));
//在Android上对无障碍辅助模式的兼容 //对无障碍辅助模式的兼容
if (Platform.isAndroid) {
try { try {
final SemanticsOwner owner = final SemanticsOwner owner =
WidgetsBinding.instance.pipelineOwner?.semanticsOwner; WidgetsBinding.instance.pipelineOwner?.semanticsOwner;
...@@ -236,7 +235,6 @@ class ContainerCoordinator { ...@@ -236,7 +235,6 @@ class ContainerCoordinator {
} catch (e) { } catch (e) {
assert(false, e.toString()); assert(false, e.toString());
} }
}
performContainerLifeCycle(_createContainerSettings(name, params, pageId), performContainerLifeCycle(_createContainerSettings(name, params, pageId),
ContainerLifeCycle.Appear); ContainerLifeCycle.Appear);
......
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