Repository: flutter
Issue: [animations] OpenContainer - Close using SliverAppBar's onStretchTrigger
Labels: framework,a: animation,package,p: animations,team-ecosystem,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,triaged-ecosystem

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

I am trying to close the `Animations`' `OpenContainer` using the `SliverAppBar`'s `onStretchTrigger`. This throws an exception. 

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->
```
import 'package:animations/animations.dart';

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        appBar: AppBar(),
        body: Padding(
          padding: const EdgeInsets.all(8.0),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.stretch,
            children: [
              OpenContainer(
                closedBuilder: (context, _) => Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: Text('Container'),
                ),
                openBuilder: (context, _) => ContainerPage(),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

class ContainerPage extends StatelessWidget {
  const ContainerPage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CustomScrollView(
      physics: BouncingScrollPhysics(),
      slivers: [
        SliverAppBar(
          stretch: true,
          onStretchTrigger: () async {
            Navigator.of(context).pop();
          },
        ),
        SliverFillRemaining(),
      ],
    );
  }
}
```

**Expected results:** <!-- what did you want to see? -->
Close the OpenContainer route.

**Actual results:** <!-- what did you see? -->
Throws an exception due to failed assertion.

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
$ flutter run --verbose
[  +87 ms] executing: [/mnt/hdd/Development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +21 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] bbfbf1770cca2da7c82e887e4e4af910034800b6
[        ] executing: [/mnt/hdd/Development/flutter/] git tag --contains HEAD
[ +148 ms] Exit code 0 from: git tag --contains HEAD
[   +1 ms] 1.20.2
[   +6 ms] executing: [/mnt/hdd/Development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/mnt/hdd/Development/flutter/] git ls-remote --get-url origin
[   +3 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +39 ms] executing: [/mnt/hdd/Development/flutter/] git rev-parse --abbrev-ref HEAD
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +28 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +10 ms] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb devices -l
[  +30 ms] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:1
[   +7 ms] /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[  +25 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +145 ms] Generating /home/tombursch/Desktop/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +20 ms] ro.hardware = ranchu
[  +21 ms] Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[  +34 ms] Starting incremental build...
[   +3 ms] Initializing file store
[  +11 ms] Skipping target: gen_localizations
[   +7 ms] complete
[   +6 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[   +8 ms] /mnt/hdd/Development/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /mnt/hdd/Development/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /mnt/hdd/Development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/
--incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill /tmp/flutter_tools.ONNQEM/flutter_tool.HEUFWS/app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill.track.dill
[  +16 ms] executing: /mnt/hdd/Development/android/sdk/build-tools/30.0.1/aapt dump xmltree /home/tombursch/Desktop/bug/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +6 ms] Exit code 0 from: /mnt/hdd/Development/android/sdk/build-tools/30.0.1/aapt dump xmltree /home/tombursch/Desktop/bug/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.bug" (Raw: "com.example.bug")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="bug" (Raw: "bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +7 ms] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +22 ms] Exit code 0 from: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           08-18 21:28:49.046 E/GnssHAL_GnssInterface( 1790): gnssSvStatusCb: b: input svInfo.flags is 8
[        ] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +16 ms] Exit code 0 from: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[        ] --------- beginning of main
           08-18 21:28:49.046 E/GnssHAL_GnssInterface( 1790): gnssSvStatusCb: b: input svInfo.flags is 8
[   +9 ms] <- compile package:bug/main.dart
[   +9 ms] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb version
[  +21 ms] Android Debug Bridge version 1.0.41
           Version 30.0.3-6597393
           Installed as /mnt/hdd/Development/android/sdk/platform-tools/adb
[   +2 ms] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb start-server
[   +7 ms] Building APK
[  +16 ms] Running Gradle task 'assembleDebug'...
[   +1 ms] gradle.properties already sets `android.enableR8`
[   +1 ms] Using gradle from /home/tombursch/Desktop/bug/android/gradlew.
[        ] /home/tombursch/Desktop/bug/android/gradlew mode: 33277 rwxrwxr-x.
[   +7 ms] executing: /mnt/hdd/bin/android-studio/jre/bin/java -version
[  +51 ms] Exit code 0 from: /mnt/hdd/bin/android-studio/jre/bin/java -version
[        ] openjdk version "1.8.0_212-release"
           OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
           OpenJDK 64-Bit Server VM (build 25.212-b4-5784211, mixed mode)
[   +3 ms] executing: [/home/tombursch/Desktop/bug/android/] /home/tombursch/Desktop/bug/android/gradlew -Pverbose=true -Ptarget-platform=android-x86 -Ptarget=/home/tombursch/Desktop/bug/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root
assembleDebug
[+2872 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +91 ms] executing: [/mnt/hdd/Development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +22 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] bbfbf1770cca2da7c82e887e4e4af910034800b6
[        ] [        ] executing: [/mnt/hdd/Development/flutter/] git tag --contains HEAD
[        ] [ +150 ms] Exit code 0 from: git tag --contains HEAD
[        ] [        ] 1.20.2
[        ] [   +6 ms] executing: [/mnt/hdd/Development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/mnt/hdd/Development/flutter/] git ls-remote --get-url origin
[        ] [   +2 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +31 ms] executing: [/mnt/hdd/Development/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +22 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [   +4 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [  +63 ms] Initializing file store
[        ] [  +13 ms] Skipping target: gen_localizations
[        ] [   +5 ms] kernel_snapshot: Starting due to {}
[   +1 ms] [  +24 ms] /mnt/hdd/Development/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /mnt/hdd/Development/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/mnt/hdd/Development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --no-link-platform --packages /home/tombursch/Desktop/bug/.packages --output-dill
/home/tombursch/Desktop/bug/.dart_tool/flutter_build/c40bec4533331ab7592dfe30f1858608/app.dill --depfile /home/tombursch/Desktop/bug/.dart_tool/flutter_build/c40bec4533331ab7592dfe30f1858608/kernel_snapshot.d package:bug/main.dart
[+3979 ms] [+5255 ms] kernel_snapshot: Complete
[ +499 ms] [ +483 ms] debug_android_application: Starting due to {}
[ +100 ms] [ +172 ms] debug_android_application: Complete
[ +599 ms] [ +539 ms] Persisting file store
[        ] [   +6 ms] Done persisting file store
[        ] [   +6 ms] build succeeded.
[        ] [   +7 ms] "flutter assemble" took 6,592ms.
[        ] [   +2 ms] ensureAnalyticsSent: 0ms
[        ] [   +1 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[  +99 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:checkDebugManifest UP-TO-DATE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders UP-TO-DATE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +198 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[   +1 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugResources UP-TO-DATE
[        ] > Task :app:compileDebugKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[        ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[        ] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[  +95 ms] > Task :app:signingConfigWriterDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] Compatible side by side NDK version was not found.
[ +899 ms] > Task :app:packageDebug
[ +144 ms] > Task :app:assembleDebug
[        ] BUILD SUCCESSFUL in 9s
[        ] 31 actionable tasks: 6 executed, 25 up-to-date
[ +355 ms] Running Gradle task 'assembleDebug'... (completed in 9.9s)
[  +86 ms] calculateSha: LocalDirectory: '/home/tombursch/Desktop/bug/build/app/outputs/flutter-apk'/app.apk
[  +38 ms] calculateSha: reading file took 38us
[ +421 ms] calculateSha: computing sha took 421us
[   +4 ms] ✓ Built build/app/outputs/flutter-apk/app-debug.apk.
[   +2 ms] executing: /mnt/hdd/Development/android/sdk/build-tools/30.0.1/aapt dump xmltree /home/tombursch/Desktop/bug/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +4 ms] Exit code 0 from: /mnt/hdd/Development/android/sdk/build-tools/30.0.1/aapt dump xmltree /home/tombursch/Desktop/bug/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.bug" (Raw: "com.example.bug")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="bug" (Raw: "bug")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[        ] Stopping app 'app.apk' on Android SDK built for x86.
[        ] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.bug
[  +29 ms] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.bug
[  +21 ms] package:com.example.bug
[   +1 ms] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.bug.sha1
[  +14 ms] 57a14c6140adf88e1d0e19c5eb5d1c5140f8c081
[        ] Installing APK.
[   +1 ms] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb version
[   +4 ms] Android Debug Bridge version 1.0.41
           Version 30.0.3-6597393
           Installed as /mnt/hdd/Development/android/sdk/platform-tools/adb
[        ] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb start-server
[   +4 ms] Installing build/app/outputs/flutter-apk/app.apk...
[        ] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 install -t -r /home/tombursch/Desktop/bug/build/app/outputs/flutter-apk/app.apk
[ +568 ms] Performing Streamed Install
                    Success
[        ] Installing build/app/outputs/flutter-apk/app.apk... (completed in 0.6s)
[        ] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 shell echo -n d5a4cb21370243a0a2075b1231898dd79486874e > /data/local/tmp/sky.com.example.bug.sha1
[  +17 ms] Android SDK built for x86 startApp
[   +1 ms] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points
true com.example.bug/com.example.bug.MainActivity
[  +30 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[+1168 ms] Observatory URL on device: http://127.0.0.1:38381/qsgiDCyMsvM=/
[        ] executing: /mnt/hdd/Development/android/sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:38381
[   +8 ms] 46725
[        ] Forwarded host port 46725 to device port 38381 for Observatory
[   +5 ms] Caching compiled dill
[  +30 ms] Connecting to service protocol: http://127.0.0.1:46725/qsgiDCyMsvM=/
[ +273 ms] Successfully connected to service protocol: http://127.0.0.1:46725/qsgiDCyMsvM=/
[        ] Waiting for Android SDK built for x86 to report its views...
[   +8 ms] Waiting for Android SDK built for x86 to report its views... (completed in 7ms)
[   +9 ms] DevFS: Creating new filesystem on the device (null)
[  +28 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug/code_cache/bugLSERYO/bug/)
[   +2 ms] Updating assets
[  +62 ms] Syncing files to device Android SDK built for x86...
[   +1 ms] Scanning asset files
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] <- recompile package:bug/main.dart fd7c7998-5fef-457c-bb0b-0f695d601108
[        ] <- fd7c7998-5fef-457c-bb0b-0f695d601108
[ +104 ms] Updating files
[ +134 ms] DevFS: Sync finished
[        ] Syncing files to device Android SDK built for x86... (completed in 242ms)
[        ] Synced 0.9MB.
[        ] <- accept
[   +5 ms] Connected to _flutterView/0xcd30cc10.
[   +1 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:46725/qsgiDCyMsvM=/
[+6803 ms] E/flutter (28267): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: 'package:flutter/src/rendering/box.dart': Failed assertion: line 1709 pos 13: 'debugDoingThisResize || debugDoingThisLayout ||
[        ] E/flutter (28267):               (RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)': RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object
that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
[        ] E/flutter (28267): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
[        ] E/flutter (28267): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
[        ] E/flutter (28267): #2      RenderBox.size.<anonymous closure> (package:flutter/src/rendering/box.dart:1709:13)
[        ] E/flutter (28267): #3      RenderBox.size (package:flutter/src/rendering/box.dart:1722:6)
[        ] E/flutter (28267): #4      _OpenContainerRoute._getSize (package:animations/src/open_container.dart:656:19)
[        ] E/flutter (28267): #5      _OpenContainerRoute._takeMeasurements (package:animations/src/open_container.dart:635:26)
[        ] E/flutter (28267): #6      _OpenContainerRoute.didPop (package:animations/src/open_container.dart:620:5)
[        ] E/flutter (28267): #7      _RouteEntry.pop (package:flutter/src/widgets/navigator.dart:2489:15)
[        ] E/flutter (28267): #8      NavigatorState.pop (package:flutter/src/widgets/navigator.dart:3800:13)
[        ] E/flutter (28267): #9      ContainerPage.build.<anonymous closure> (package:bug/openContainerBug.dart:41:35)
[        ] E/flutter (28267): #10     RenderSliverPersistentHeader.layoutChild (package:flutter/src/rendering/sliver_persistent_header.dart:196:44)
[        ] E/flutter (28267): #11     RenderSliverScrollingPersistentHeader.performLayout (package:flutter/src/rendering/sliver_persistent_header.dart:338:5)
[        ] E/flutter (28267): #12     RenderObject.layout (package:flutter/src/rendering/object.dart:1769:7)
[        ] E/flutter (28267): #13     RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:471:13)
[        ] E/flutter (28267): #14     RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1465:12)
[        ] E/flutter (28267): #15     RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1374:20)
[        ] E/flutter (28267): #16     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1632:7)
[        ] E/flutter (28267): #17     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:889:18)
[        ] E/flutter (28267): #18     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:404:19)
[        ] E/flutter (28267): #19     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:867:13)
[        ] E/flutter (28267): #20     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:286:5)
[        ] E/flutter (28267): #21     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1117:15)
[        ] E/flutter (28267): #22     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1056:9)
[        ] E/flutter (28267): #23     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:972:5)
[        ] E/flutter (28267): #24     _rootRun (dart:async/zone.dart:1190:13)
[        ] E/flutter (28267): #25     _CustomZone.run (dart:async/zone.dart:1093:19)
[        ] E/flutter (28267): #26     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
[        ] E/flutter (28267): #27     _invoke (dart:ui/hooks.dart:253:10)
[        ] E/flutter (28267): #28     _drawFrame (dart:ui/hooks.dart:211:3)
[        ] E/flutter (28267): 
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
$ flutter analyze
Analyzing bug...                                                     
No issues found! (ran in 1.3s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
$ flutter doctor -v
[✓] Flutter (Channel stable, 1.20.2, on Linux, locale en_US.UTF-8)
    • Flutter version 1.20.2 at /mnt/hdd/Development/flutter
    • Framework revision bbfbf1770c (5 days ago), 2020-08-13 08:33:09 -0700
    • Engine revision 9d5b21729f
    • Dart version 2.9.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /mnt/hdd/Development/android/sdk
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = /mnt/hdd/Development/android/sdk
    • Java binary at: /mnt/hdd/bin/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[!] Android Studio (version 3.6)
    • Android Studio at /mnt/hdd/bin/android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)

[✓] VS Code (version 1.48.0)
    • VS Code at /usr/share/code
    • Flutter extension version 3.13.2

[✓] Connected device (1 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android
      10 (API 29) (emulator)

! Doctor found issues in 1 category.
```

</details>