Repository: flutter
Issue: Autoscroll doesn't work for containers with fixed height when VoiceOver is turned on
Labels: framework,f: material design,a: accessibility,f: scrolling,has reproducible steps,P2,team-framework,triaged-framework,found in release: 3.13,found in release: 3.16

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. Create a sample app with SingleChildScrollView, but fixed container height. Meaning your container is of fixed height, but your content inside the container can span over more than that height.
2. Wrap your content inside the container within a SingleChildScrollView. This will make you content / text inside the container scrollable. This is required because if your text is more than the fixed height of the container, you'll be able to scroll to see rest of the hidden / invisible content
3. Turn on VoiceOver on iOS and run the app
4. Tap on the fixed height container on your app and watch the behavior

### Expected results

Voiceover should automatically scroll the rest of the remaining invisible content as it reads out. Expectation is for the end user to hear and also be able to see the content as it is read out by VoiceOver.

### Actual results

1. Scrolling works as normal when i don't use voiceover and i'm able to see the hidden content 
2. But with Voiceover turned on, it reads out the entire content within that fixed height container, including the invisible ones, but doesn't automatically scroll over to the hidden content as it reads it. So, I hear rest of the content inside the container, but cant see it.


### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: AutoScrollingApp(),
  ));
}

class AutoScrollingApp extends StatelessWidget {
  final ScrollController _scrollController = ScrollController();

  void autoScrollToFocusedWidget(double position, double maxScrollExtent) {
    final double currentScrollPosition = _scrollController.position.pixels;

    if (position > currentScrollPosition) {
      // Scroll down to the focused widget
      _scrollController.animateTo(
        position,
        duration: Duration(milliseconds: 500),
        curve: Curves.easeInOut,
      );
    } else if (position < currentScrollPosition) {
      // Scroll up to the focused widget
      _scrollController.animateTo(
        position - maxScrollExtent,
        duration: Duration(milliseconds: 500),
        curve: Curves.easeInOut,
      );
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Auto-Scrolling Demo'),
      ),
      body: Container(
        width: MediaQuery.of(context).size.width,
        height: 100, // Fixed height of the container
        child: SingleChildScrollView(
          controller: _scrollController,
          child: Column(
            children: [
              Semantics(
                focused: true,
                onDidGainAccessibilityFocus: () {
                  autoScrollToFocusedWidget(
                    _scrollController.position.pixels,
                    _scrollController.position.maxScrollExtent,
                  );
                },
                child: Padding(
                  padding: EdgeInsets.all(20),
                  child: Text(
                    "Flutter is an innovative and versatile open-source framework developed by Google for building natively compiled applications for mobile, web, and desktop from a single codebase. It's known for its fast development, expressive UI, and excellent performance." +
                        "With Flutter, you can create beautiful, responsive user interfaces using the Dart programming language. The framework's hot reload feature allows developers to quickly see the effects of code changes, making the development process highly efficient." +
                        "One of the key advantages of Flutter is its wide range of pre-designed widgets, which can be customized to create unique and visually appealing applications. Whether you're developing for iOS, Android, or the web, Flutter provides a consistent experience across all platforms." +
                        "Flutter's community is vibrant and continuously growing, with developers and designers contributing to an extensive library of packages, plugins, and extensions. This means you have access to a wealth of resources and tools to enhance your Flutter projects.",
                    style: TextStyle(fontSize: 16),
                  ),
                ),
              ),
              Padding(
                padding: EdgeInsets.all(20),
                child: Text(
                  'This is additional content that is not initially visible, but VoiceOver will auto-scroll to read it.',
                  style: TextStyle(fontSize: 16),
                ),
              ),
              Padding(
                padding: EdgeInsets.all(20),
                child: Text(
                  'More additional content to make it scrollable.',
                  style: TextStyle(fontSize: 16),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[!] Flutter (Channel unknown, 3.7.12, on macOS 13.5 22G74 darwin-arm64, locale en-US)
    ! Flutter version 3.7.12 on channel unknown at /Users/sravulapalli/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    ! Unknown upstream repository.
      Reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    • Framework revision 4d9e56e694 (6 months ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] VS Code (version 1.83.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.74.0

[✓] Connected device (3 available)
    • iPad (mobile)   • ef9043f4a4a5a2978c223b494a1fae2ddadefc73 • ios            • iOS 15.7.9 19H365
    • macOS (desktop) • macos                                    • darwin-arm64   • macOS 13.5 22G74 darwin-arm64
    • Chrome (web)    • chrome                                   • web-javascript • Google Chrome 117.0.5938.92

[✓] HTTP Host Availability
    • All required HTTP hosts are available
```

</details>