Move semantic-related bindings to SemanticsBinding (#121289)

Move semantic-related bindings to SemanticsBinding
This commit is contained in:
Michael Goderbauer
2023-02-24 11:30:57 -08:00
committed by GitHub
parent cb67ecd97d
commit b1b7284a72
12 changed files with 339 additions and 88 deletions

View File

@@ -184,8 +184,8 @@ void main() {
);
testWidgets('Flutter Gallery app smoke test with semantics', (WidgetTester tester) async {
RendererBinding.instance.setSemanticsEnabled(true);
final SemanticsHandle handle = SemanticsBinding.instance.ensureSemantics();
await smokeGallery(tester);
RendererBinding.instance.setSemanticsEnabled(false);
handle.dispose();
});
}