forked from firka/flutter
Enables setting of semantics focused and focusable attributes within Focus widgets. (#41814)
This adds a Semantics node to the Focus and FocusScope widgets, setting the focused and focusable attributes so that the accessibility subsystem can be told when a control has the input focus. Includes an engine roll to flutter/engine@77252d2, and the following 8 engine changes: flutter/engine@77252d2 Greg Spencer Add missing focusable testing info (flutter/engine#13013) flutter/engine@0e42a29 skia-flutter-.. Roll src/third_party/skia 54548626a977..e27a503a0a21 (1 commits) (flutter/engine#13024) flutter/engine@6b56ed7 gaaclarke Refactor: FlutterDartProject (flutter/engine#13006) flutter/engine@393480c skia-flutter-.. Roll src/third_party/skia 77dde599c98a..54548626a977 (1 commits) (flutter/engine#13023) flutter/engine@080b89d skia-flutter-.. Roll src/third_party/skia 2b1a25a4d324..77dde599c98a (1 commits) (flutter/engine#13021) flutter/engine@90b0f30 Ben Konyi Roll src/third_party/dart f4a72bfc64..bb04f145b2 (18 commits) (flutter/engine#13020) flutter/engine@049fb89 skia-flutter-.. Roll fuchsia/sdk/core/linux-amd64 from q_uYX... to cknsi... (flutter/engine#13019) flutter/engine@6925b2a skia-flutter-.. Roll fuchsia/sdk/core/mac-amd64 from wuAtw... to u0JpE... (flutter/engine#13018) Related Issues Addresses #40101 Landing on red in order to fix the build: it's red because of the needed engine roll.
This commit is contained in:
@@ -11,6 +11,8 @@ import 'package:flutter/services.dart';
|
||||
import 'package:flutter_driver/driver_extension.dart';
|
||||
|
||||
import 'src/tests/controls_page.dart';
|
||||
import 'src/tests/popup_constants.dart';
|
||||
import 'src/tests/popup_page.dart';
|
||||
import 'src/tests/text_field_page.dart';
|
||||
|
||||
void main() {
|
||||
@@ -40,10 +42,11 @@ Future<String> dataHandler(String message) async {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
const List<String> routes = <String>[
|
||||
selectionControlsRoute,
|
||||
textFieldRoute,
|
||||
];
|
||||
Map<String, WidgetBuilder> routes = <String, WidgetBuilder>{
|
||||
selectionControlsRoute : (BuildContext context) => SelectionControlsPage(),
|
||||
popupControlsRoute : (BuildContext context) => PopupControlsPage(),
|
||||
textFieldRoute : (BuildContext context) => TextFieldPage(),
|
||||
};
|
||||
|
||||
class TestApp extends StatelessWidget {
|
||||
const TestApp();
|
||||
@@ -51,15 +54,12 @@ class TestApp extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
routes: <String, WidgetBuilder>{
|
||||
selectionControlsRoute: (BuildContext context) => SelectionControlsPage(),
|
||||
textFieldRoute: (BuildContext context) => TextFieldPage(),
|
||||
},
|
||||
routes: routes,
|
||||
home: Builder(
|
||||
builder: (BuildContext context) {
|
||||
return Scaffold(
|
||||
body: ListView(
|
||||
children: routes.map<Widget>((String value) {
|
||||
children: routes.keys.map<Widget>((String value) {
|
||||
return MaterialButton(
|
||||
child: Text(value),
|
||||
onPressed: () {
|
||||
|
||||
Reference in New Issue
Block a user