Repository: flutter
Issue: Hot reload cannot recover from sliver error
Labels: framework,t: hot reload,f: scrolling,has reproducible steps,P3,team-tool,triaged-tool,found in release: 3.13,found in release: 3.14

### 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. Add `CustomScrollView`
2. Add a child that not a sliver e.g `Container`
3. Save and hot reload
4. Wrap that container into `SliverToBoxAdapter`

### Expected results

The error disappears and can continue coding as usual

### Actual results

The error keeps saying `Failed assertion: line 6426 pos 12: 'child == _child': is not true.` and does not go away until hot restart. 

### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Sliver error'),
        ),
        body: CustomScrollView(
          slivers: [
            Container(),
          ],
        ),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>


https://github.com/flutter/flutter/assets/29712386/ebd98e72-8c84-4798-b380-3ad57f125835



</details>


### Logs

<details><summary>Logs</summary>

```console
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following assertion was thrown building
RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#431d2](state:
RawGestureDetectorState#49d38(gestures: [vertical drag], behavior: opaque)):
'package:flutter/src/widgets/framework.dart': Failed assertion: line 1969 pos 12:
'element._lifecycleState == _ElementLifecycle.active': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.yml

The relevant error-causing widget was:
  CustomScrollView
  CustomScrollView:file:///Users/alexmiller/projects/temp/sliver_error/lib/main.dart:17:15

When the exception was thrown, this was the stack:
#2      _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1969:12)
#3      MultiChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6532:16)
#4      _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1972:13)
#5      SingleChildRenderObjectElement.visitChildren (package:flutter/src/widgets/framework.dart:6420:14)
#6      _InactiveElements._deactivateRecursively (package:flutter/src/widgets/framework.dart:1972:13)
#7      _InactiveElements.add (package:flutter/src/widgets/framework.dart:1984:7)
#8      Element.deactivateChild (package:flutter/src/widgets/framework.dart:4224:30)
#9      Element._retakeInactiveElement (package:flutter/src/widgets/framework.dart:4119:14)
...     Normal element mounting (10 frames)
#19     Element.inflateWidget (package:flutter/src/widgets/framework.dart:4182:16)
#20     Element.updateChild (package:flutter/src/widgets/framework.dart:3701:20)
#21     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#22     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#23     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#24     StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#25     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#26     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#27     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#28     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#29     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#30     ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#31     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#32     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#33     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#34     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#35     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#36     ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#37     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#38     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#39     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#40     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#41     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#42     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#43     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#44     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#45     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#46     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#47     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#48     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#49     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#50     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#51     StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#52     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#53     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#54     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#55     SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#56     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#57     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#58     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#59     ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#60     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#61     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#62     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#63     ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#64     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#65     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#66     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#67     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#68     StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#69     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#70     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#71     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#72     StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#73     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#74     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#75     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#76     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#77     StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#78     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#79     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#80     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#81     StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#82     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#83     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#84     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#85     StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#86     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#87     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#88     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#89     StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#90     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#91     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#92     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#93     ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#94     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#95     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#96     Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#97     ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#98     Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#99     Element.updateChildren (package:flutter/src/widgets/framework.dart:3834:32)
#100    MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6594:17)
#101    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#102    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#103    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#104    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#105    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#106    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#107    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#108    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#109    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#110    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#111    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#112    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#113    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#114    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#115    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#116    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#117    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#118    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#119    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#120    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#121    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#122    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#123    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#124    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#125    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#126    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#127    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#128    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#129    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#130    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#131    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#132    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#133    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#134    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#135    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#136    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#137    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#138    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#139    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#140    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#141    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#142    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#143    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#144    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#145    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#146    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#147    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#148    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#149    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#150    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#151    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#152    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#153    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#154    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#155    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#156    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#157    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#158    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#159    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#160    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#161    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#162    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#163    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#164    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#165    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#166    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#167    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#168    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#169    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#170    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#171    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#172    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#173    StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#174    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#175    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#176    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#177    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#178    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#179    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#180    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#181    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#182    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#183    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#184    Element.updateChildren (package:flutter/src/widgets/framework.dart:3834:32)
#185    MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6594:17)
#186    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#187    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#188    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#189    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#190    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#191    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#192    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#193    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#194    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#195    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#196    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#197    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#198    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#199    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#200    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#201    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#202    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#203    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#204    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#205    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#206    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#207    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#208    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#209    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#210    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#211    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#212    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#213    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#214    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#215    StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#216    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#217    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#218    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#219    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#220    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#221    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#222    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#223    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#224    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#225    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#226    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#227    _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:107:11)
#228    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#229    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#230    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#231    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#232    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#233    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#234    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#235    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#236    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#237    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#238    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#239    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#240    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#241    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#242    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#243    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#244    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#245    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#246    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#247    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#248    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#249    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#250    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#251    StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#252    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#253    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#254    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#255    StatelessElement.update (package:flutter/src/widgets/framework.dart:5373:5)
#256    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#257    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6441:14)
#258    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#259    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#260    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#261    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#262    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#263    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#264    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#265    ProxyElement.update (package:flutter/src/widgets/framework.dart:5628:5)
#266    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#267    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#268    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#269    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#270    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#271    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#272    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#273    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#274    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#275    StatefulElement.update (package:flutter/src/widgets/framework.dart:5485:5)
#276    Element.updateChild (package:flutter/src/widgets/framework.dart:3685:15)
#277    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5322:16)
#278    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#279    Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#280    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2779:19)
#281    WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:916:21)
#282    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:360:5)
#283    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1297:15)
#284    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1227:9)
#285    SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:952:7)
#289    _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
(elided 5 frames from class _AssertionError, class _Timer, and dart:async-patch)

════════════════════════════════════════════════════════════════════════════════════════════════════

Another exception was thrown: Duplicate GlobalKey detected in widget tree.
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.1, on macOS 14.0 23A5328b darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[!] Android Studio (version unknown)
    ✗ Unable to determine Android Studio version.
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.81.1)
[✓] VS Code (version 1.82.0-insider)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 1 category.
```

</details>