mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fixes regression caused by PR [#174374](https://github.com/flutter/flutter/pull/174374). SliverLists are not scrolling with TalkBack. Update fixes the issue by adding the ScrollView or HorizontalScrollView if the scroll actions are present. Test code used: ``` dart import 'package:flutter/material.dart'; void main() => runApp(const MaterialApp(home: MyApp())); class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return Scaffold( body: CustomScrollView( slivers: <Widget>[ const SliverAppBar( pinned: true, expandedHeight: 100.0, title: Text('Pinned Semantic Focus'), backgroundColor: Colors.blue, ), // The List SliverList( delegate: SliverChildBuilderDelegate((BuildContext context, int index) { return ListTile(title: Text('Item $index'), subtitle: const Text('Scroll down then navigate back up')); }, childCount: 50), ), ], ), ); } } ``` https://github.com/user-attachments/assets/a3780f6d-8e22-40b7-83eb-38bc406b8821 - Fixing #179450 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.