Repository: flutter
Issue: Accessibility tree nodes are incorrectly positioned when using OpenContainer to open page
Labels: platform-ios,framework,a: accessibility,package,p: animations,has reproducible steps,P2,found in release: 3.7,found in release: 3.10,team-ios,triaged-ios

### 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. Open app on iOS device while using VoiceOver / Accessibility Inspector on macOS.
2. Open a page using OpenContainer from `animations` package
3. Tap / hover over screen elements

### Expected results

Accessibility tree nodes should appear on directly on top of the elements they refer to.

### Actual results

As the video below shows, the accessibility tree nodes are the wrong size and in the wrong position, in the top left corner of the screen.

### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:animations/animations.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
          child: OpenContainer(
        transitionType: ContainerTransitionType.fade,
        transitionDuration: Duration(seconds: 1),
        openBuilder: (context, _) => NewPage(),
        closedElevation: 0,
        closedShape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(32), side: BorderSide(color: Colors.white, width: 1)),
        closedColor: Colors.blue,
        closedBuilder: (context, _) => Container(
          alignment: Alignment.center,
          width: MediaQuery.of(context).size.width * 0.8,
          height: 200,
          child: const Padding(
            padding: EdgeInsets.all(8),
            child: Text(
              "Open Page",
              style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold, fontSize: 20),
            ),
          ),
        ),
      )),
    );
  }
}

class NewPage extends StatelessWidget {
  const NewPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final items = List<Widget>.generate(
      6,
      (i) => TextButton(
        onPressed: () {},
        child: Container(
          height: 72,
          color: Colors.white10,
          child: Center(
            child: Text("Button $i"),
          ),
        ),
      ),
    );

    return Scaffold(
      appBar: AppBar(
        title: Text("New Page"),
      ),
      body: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: items),
    );
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

https://user-images.githubusercontent.com/25343797/234285753-432653f1-7029-45fc-9f48-f9bc7ec8cacd.mov

</details>


### Logs

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


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
    • Flutter version 3.7.1 on channel stable at /opt/homebrew/Caskroom/flutter/3.0.0/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7048ed95a5 (3 months ago), 2023-02-01 09:07:31 -0800
    • Engine revision 800594f1f4
    • Dart version 2.19.1
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/username/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>