text:
line 186 pos 16: 'earliestUsefulChild != null': is not true.

I have a list view with scroll infinite. The scroll infinite works perfectly even I reach the last item of the list, but when I scrolled down at the end of the list again or many times , the mobile application crashed and I got an error said :
Flutter (Channel stable, 3.0.5, on macOS 12.5 21G72 darwin-x64, locale
    fr-FR)
    • Flutter version 3.0.5 at /____/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (6 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

List<Widget> _children =List<Widget>.of([],growable: true) ;
ListView(
               physics:  BouncingScrollPhysics(),
                controller: _scrollController,
               shrinkWrap: true,
               addRepaintBoundaries :true,
                addAutomaticKeepAlives: true,
                addSemanticIndexes: true,

                padding: FxSpacing.all(24),
                children: _children..addAll(
                    List.generate(value.addedItems!.length, (index) => _getTicket(value.addedItems![index]))
                )
            )

======== Exception caught by rendering library =====================================================
The following assertion was thrown during performLayout():
'package:flutter/src/rendering/sliver_list.dart': Failed assertion: line 186 pos 16: 'earliestUsefulChild != null': is not true.

The relevant error-causing widget was:
  ListView ListView:file:///____/lib/screens/ticket_list.dart:196:12
When the exception was thrown, this was the stack:
#2      RenderSliverList.performLayout (package:flutter/src/rendering/sliver_list.dart:186:16)
#3      RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#4      RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:137:12)
#5      RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:371:11)
#6      RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#7      RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:510:13)
#8      RenderShrinkWrappingViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1938:12)
#9      RenderShrinkWrappingViewport.performLayout (package:flutter/src/rendering/viewport.dart:1884:20)
#10     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#11     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#12     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#13     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#14     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#15     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#16     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#17     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#18     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#19     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#20     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#21     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#22     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#23     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#24     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#25     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#26     RenderCustomPaint.performLayout (package:flutter/src/rendering/custom_paint.dart:545:11)
#27     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#28     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#29     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#30     ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:56:11)
#31     RenderStack._computeSize (package:flutter/src/rendering/stack.dart:552:43)
#32     RenderStack.performLayout (package:flutter/src/rendering/stack.dart:579:12)
#33     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#34     ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:56:11)
#35     RenderFlex._computeSizes (package:flutter/src/rendering/flex.dart:896:45)
#36     RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:931:32)
#37     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#38     MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:171:12)
#39     _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:1003:7)
#40     MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:240:7)
#41     RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:403:14)
#42     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#43     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#44     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#45     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:116:14)
#46     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1376:11)
#47     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#48     RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:233:12)
#49     RenderObject.layout (package:flutter/src/rendering/object.dart:1915:7)
#50     MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:171:12)
#51     _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:1003:7)
#52     MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:240:7)
#53     RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:403:14)
#54     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1757:7)
#55     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:887:18)
#56     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:504:19)
#57     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:892:13)
#58     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:370:5)
#59     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1146:15)
#60     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1083:9)
#61     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:997:5)
#65     _invoke (dart:ui/hooks.dart:151:10)
#66     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#67     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)
The following RenderObject was being processed when the exception was fired: RenderSliverList#41716 relayoutBoundary=up18 NEEDS-PAINT
...  needs compositing
...  parentData: paintOffset=Offset(24.0, 0.0) (can use size)
...  constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.reverse, scrollOffset: 0.0, remainingPaintExtent: 0.0, overlap: -49139.7, crossAxisExtent: 363.4, crossAxisDirection: AxisDirection.right, viewportMainAxisExtent: 720.8, remainingCacheExtent: 946.8, cacheOrigin: 0.0)
...  geometry: SliverGeometry(scrollExtent: 0.0, hidden, maxPaintExtent: 0.0, scrollOffsetCorrection: -422.1)
...    scrollExtent: 0.0
...    hidden
...    maxPaintExtent: 0.0
...    scrollOffsetCorrection: -422.1
...  currently live children: 5 to 14
RenderObject: RenderSliverList#41716 relayoutBoundary=up18 NEEDS-PAINT
  needs compositing
  parentData: paintOffset=Offset(24.0, 0.0) (can use size)
  constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.reverse, scrollOffset: 0.0, remainingPaintExtent: 0.0, overlap: -49139.7, crossAxisExtent: 363.4, crossAxisDirection: AxisDirection.right, viewportMainAxisExtent: 720.8, remainingCacheExtent: 946.8, cacheOrigin: 0.0)
  geometry: SliverGeometry(scrollExtent: 0.0, hidden, maxPaintExtent: 0.0, scrollOffsetCorrection: -422.1)
    scrollExtent: 0.0
    hidden
    maxPaintExtent: 0.0
    scrollOffsetCorrection: -422.1
  currently live children: 5 to 14
...  child with index 5: RenderIndexedSemantics#c9297 relayoutBoundary=up19
...    needs compositing
...    parentData: index=5; layoutOffset=0.0 (can use size)
...    constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...    size: Size(363.4, 85.0)
...    index: 5
...    child: RenderRepaintBoundary#80441 relayoutBoundary=up20
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...      layer: OffsetLayer#98482 DETACHED
...        engine layer: OffsetEngineLayer#9fe37
...        handles: 1
...        offset: Offset(24.0, -71.3)
...      size: Size(363.4, 85.0)
...      metrics: 92.3% useful (1 bad vs 12 good)
...      diagnosis: this is an outstandingly useful repaint boundary and should definitely be kept
...      child: RenderSemanticsAnnotations#e9aa6 relayoutBoundary=up21
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...        size: Size(363.4, 85.0)
...        child: RenderMouseRegion#0d640 relayoutBoundary=up22
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...          size: Size(363.4, 85.0)
...          behavior: opaque
...          listeners: enter, exit
...          cursor: SystemMouseCursor(click)
...  child with index 6: RenderIndexedSemantics#d8a1b relayoutBoundary=up19
...    needs compositing
...    parentData: index=6; layoutOffset=510.0 (can use size)
...    constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...    size: Size(363.4, 85.0)
...    index: 6
...    child: RenderRepaintBoundary#1565d relayoutBoundary=up20
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...      layer: OffsetLayer#e8fa3 DETACHED
...        engine layer: OffsetEngineLayer#7af61
...        handles: 1
...        offset: Offset(24.0, -79.2)
...      size: Size(363.4, 85.0)
...      metrics: 97.5% useful (1 bad vs 39 good)
...      diagnosis: this is an outstandingly useful repaint boundary and should definitely be kept
...      child: RenderSemanticsAnnotations#d0e91 relayoutBoundary=up21
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...        size: Size(363.4, 85.0)
...        child: RenderMouseRegion#dc0b4 relayoutBoundary=up22
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...          size: Size(363.4, 85.0)
...          behavior: opaque
...          listeners: enter, exit
...          cursor: SystemMouseCursor(click)
...  child with index 7: RenderIndexedSemantics#05db7 relayoutBoundary=up19
...    needs compositing
...    parentData: index=7; layoutOffset=595.0 (can use size)
...    constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...    size: Size(363.4, 85.0)
...    index: 7
...    child: RenderRepaintBoundary#eea43 relayoutBoundary=up20
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...      layer: OffsetLayer#bc1b6
...        engine layer: OffsetEngineLayer#89df0
...        handles: 2
...        offset: Offset(24.0, -57.5)
...      size: Size(363.4, 85.0)
...      metrics: 98.4% useful (1 bad vs 61 good)
...      diagnosis: this is an outstandingly useful repaint boundary and should definitely be kept
...      child: RenderSemanticsAnnotations#3ab92 relayoutBoundary=up21
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...        size: Size(363.4, 85.0)
...        child: RenderMouseRegion#c578f relayoutBoundary=up22
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...          size: Size(363.4, 85.0)
...          behavior: opaque
...          listeners: enter, exit
...          cursor: SystemMouseCursor(click)
...  child with index 8: RenderIndexedSemantics#8fa93 relayoutBoundary=up19
...    needs compositing
...    parentData: index=8; layoutOffset=680.0 (can use size)
...    constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...    size: Size(363.4, 85.0)
...    index: 8
...    child: RenderRepaintBoundary#5ddd3 relayoutBoundary=up20
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...      layer: OffsetLayer#ccbab
...        engine layer: OffsetEngineLayer#e3540
...        handles: 2
...        offset: Offset(24.0, 27.5)
...      size: Size(363.4, 85.0)
...      metrics: 98.4% useful (1 bad vs 61 good)
...      diagnosis: this is an outstandingly useful repaint boundary and should definitely be kept
...      child: RenderSemanticsAnnotations#10aa7 relayoutBoundary=up21
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...        size: Size(363.4, 85.0)
...        child: RenderMouseRegion#e40d7 relayoutBoundary=up22
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...          size: Size(363.4, 85.0)
...          behavior: opaque
...          listeners: enter, exit
...          cursor: SystemMouseCursor(click)
...  child with index 9: RenderIndexedSemantics#7bb8a relayoutBoundary=up19
...    needs compositing
...    parentData: index=9; layoutOffset=765.0 (can use size)
...    constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...    size: Size(363.4, 85.0)
...    index: 9
...    child: RenderRepaintBoundary#8c4c0 relayoutBoundary=up20
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...      layer: OffsetLayer#f5902
...        engine layer: OffsetEngineLayer#084d1
...        handles: 2
...        offset: Offset(24.0, 112.5)
...      size: Size(363.4, 85.0)
...      metrics: 98.3% useful (1 bad vs 58 good)
...      diagnosis: this is an outstandingly useful repaint boundary and should definitely be kept
...      child: RenderSemanticsAnnotations#e7e4f relayoutBoundary=up21
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...        size: Size(363.4, 85.0)
...        child: RenderMouseRegion#36dea relayoutBoundary=up22
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...          size: Size(363.4, 85.0)
...          behavior: opaque
...          listeners: enter, exit
...          cursor: SystemMouseCursor(click)
...  child with index 10: RenderIndexedSemantics#59fab relayoutBoundary=up19
...    needs compositing
...    parentData: index=10; layoutOffset=850.0 (can use size)
...    constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...    size: Size(363.4, 85.0)
...    index: 10
...    child: RenderRepaintBoundary#e6ba8 relayoutBoundary=up20
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...      layer: OffsetLayer#a5db8
...        engine layer: OffsetEngineLayer#18674
...        handles: 2
...        offset: Offset(24.0, 197.5)
...      size: Size(363.4, 85.0)
...      metrics: 98.3% useful (1 bad vs 57 good)
...      diagnosis: this is an outstandingly useful repaint boundary and should definitely be kept
...      child: RenderSemanticsAnnotations#812a3 relayoutBoundary=up21
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...        size: Size(363.4, 85.0)
...        child: RenderMouseRegion#e7d69 relayoutBoundary=up22
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...          size: Size(363.4, 85.0)
...          behavior: opaque
...          listeners: enter, exit
...          cursor: SystemMouseCursor(click)
...  child with index 11: RenderIndexedSemantics#8a261 relayoutBoundary=up19
...    needs compositing
...    parentData: index=11; layoutOffset=935.0 (can use size)
...    constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...    size: Size(363.4, 85.0)
...    index: 11
...    child: RenderRepaintBoundary#4dd5e relayoutBoundary=up20
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...      layer: OffsetLayer#0ea2d
...        engine layer: OffsetEngineLayer#455dd
...        handles: 2
...        offset: Offset(24.0, 282.5)
...      size: Size(363.4, 85.0)
...      metrics: 98.2% useful (1 bad vs 56 good)
...      diagnosis: this is an outstandingly useful repaint boundary and should definitely be kept
...      child: RenderSemanticsAnnotations#1109f relayoutBoundary=up21
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...        size: Size(363.4, 85.0)
...        child: RenderMouseRegion#300ba relayoutBoundary=up22
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...          size: Size(363.4, 85.0)
...          behavior: opaque
...          listeners: enter, exit
...          cursor: SystemMouseCursor(click)
...  child with index 12: RenderIndexedSemantics#a73d6 relayoutBoundary=up19
...    needs compositing
...    parentData: index=12; layoutOffset=1020.0 (can use size)
...    constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...    size: Size(363.4, 85.0)
...    index: 12
...    child: RenderRepaintBoundary#96111 relayoutBoundary=up20
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...      layer: OffsetLayer#43c7f
...        engine layer: OffsetEngineLayer#aacf8
...        handles: 2
...        offset: Offset(24.0, 367.5)
...      size: Size(363.4, 85.0)
...      metrics: 98.2% useful (1 bad vs 54 good)
...      diagnosis: this is an outstandingly useful repaint boundary and should definitely be kept
...      child: RenderSemanticsAnnotations#b94d1 relayoutBoundary=up21
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...        size: Size(363.4, 85.0)
...        child: RenderMouseRegion#7ee7d relayoutBoundary=up22
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...          size: Size(363.4, 85.0)
...          behavior: opaque
...          listeners: enter, exit
...          cursor: SystemMouseCursor(click)
...  child with index 13: RenderIndexedSemantics#8cf82 relayoutBoundary=up19
...    needs compositing
...    parentData: index=13; layoutOffset=1105.0 (can use size)
...    constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...    size: Size(363.4, 85.0)
...    index: 13
...    child: RenderRepaintBoundary#fd500 relayoutBoundary=up20
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...      layer: OffsetLayer#ab7b3
...        engine layer: OffsetEngineLayer#4bd5d
...        handles: 2
...        offset: Offset(24.0, 452.5)
...      size: Size(363.4, 85.0)
...      metrics: 98.1% useful (1 bad vs 52 good)
...      diagnosis: this is an outstandingly useful repaint boundary and should definitely be kept
...      child: RenderSemanticsAnnotations#b5ced relayoutBoundary=up21
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...        size: Size(363.4, 85.0)
...        child: RenderMouseRegion#b9a88 relayoutBoundary=up22
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...          size: Size(363.4, 85.0)
...          behavior: opaque
...          listeners: enter, exit
...          cursor: SystemMouseCursor(click)
...  child with index 14: RenderIndexedSemantics#39b4d relayoutBoundary=up19
...    needs compositing
...    parentData: index=14; layoutOffset=1190.0 (can use size)
...    constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...    size: Size(363.4, 85.0)
...    index: 14
...    child: RenderRepaintBoundary#df791 relayoutBoundary=up20
...      needs compositing
...      parentData: <none> (can use size)
...      constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...      layer: OffsetLayer#869e0
...        engine layer: OffsetEngineLayer#6ad7b
...        handles: 2
...        offset: Offset(24.0, 537.5)
...      size: Size(363.4, 85.0)
...      metrics: 98.0% useful (1 bad vs 49 good)
...      diagnosis: this is an outstandingly useful repaint boundary and should definitely be kept
...      child: RenderSemanticsAnnotations#52afa relayoutBoundary=up21
...        parentData: <none> (can use size)
...        constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...        size: Size(363.4, 85.0)
...        child: RenderMouseRegion#cec11 relayoutBoundary=up22
...          parentData: <none> (can use size)
...          constraints: BoxConstraints(w=363.4, 0.0<=h<=Infinity)
...          size: Size(363.4, 85.0)
...          behavior: opaque
...          listeners: enter, exit
...          cursor: SystemMouseCursor(click)
====================================================================================================

https://github.com/flutter/flutter/issues/73600#issuecomment-757920137

Hi @imagfd, please provide a completed and minimal reproducible code sample so that we may verify this.
Also, there was a hint here that you can try to solve this issue.
Thank you!

Hi @huycozy , thank for your reply. I apologize if I misexplained the issue.
I tried and I'm glad that finally I fixed it :)
The error occured at this line
_children.clear();
which is used to refresh the list (pull to refresh) . After removing this line, the error went away. Thanks  !
List<Widget> _children =List<Widget>.of([],growable: true) ;

get _ticketsListWidget{
    Widget resultWidget =_loadWidget;
    return   Consumer<Tickets>(
      builder: (_, value, __) {
        //if(value.infiniteScroll.page==0) _children.clear();   <=====remove this line

        if(value.items != null){
          if(value.addedItems!=null){
            if(value.items!.length==0)
              resultWidget = _noTicketsWidget;
            else
              resultWidget = _getListWidget(value);
          }
        }
        return resultWidget;
      }
    );
  }

_getListWidget(dynamic value){
    return RefreshIndicator(
        onRefresh: _refresh,
        child: ListView(
                physics:  const BouncingScrollPhysics(),
                controller: _scrollController,
                shrinkWrap: true,
                children: _children..addAll(
                    List.generate(value.addedItems!.length, (index) => _getTicketWidget(value.addedItems![index]))
                )
        )
    );
  }

@imagfd Glad to see you solved it. Close the issue as solved. Thank you!

authors: UsamaKarim huycozy imagfd


text:
Duplicate targets in engine build files

I noticed that when I specifically request an ARM build on my M1 mac it generates over 1000 extra targets to build which causes ninja to report an extra 3000 build steps. Investigating, I found that there are many duplicate targets in the compile_commands.json file when you specify --mac-cpu arm64 compared to the default that builds for an Intel CPU but even the Intel build has a number of duplicate targets. For example:
% grep '"file"' out/host_debug_unopt/compile_commands.json | sort | uniq -d | wc
     513    1026   37467
% grep '"file"' out/host_debug_unopt_arm64/compile_commands.json | sort | uniq -d | wc
    1671    3342  118651

intel.dups.txt
m1.dups.txt
Here is a sample command that is dup'd in the M1 build. It looks like it is built once into obj/flutter/fml and a second time into clang_x64/obj/flutter/fml...
[
  {
    "file": "../../flutter/fml/ascii_trie.cc",
    "directory": "/Users/<username>/Development/engine/src/out/host_debug_unopt_arm64",
    "command": "/Users/<username>/Development/flutter_goma/gomacc  ../../buildtools/mac-x64/clang/bin/clang++ -MD -MF  obj/flutter/fml/fml.ascii_trie.o.d  -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE_JIT_RELEASE=4 \"-DDART_LEGACY_API=[[deprecated]]\" -DFLUTTER_RUNTIME_MODE=1 -DFLUTTER_JIT_RUNTIME=1  -I../.. -Igen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../build/secondary/third_party/libcxx/config -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/dart/runtime -I../../third_party/dart/runtime/include -I../../third_party/abseil-cpp -isysroot /Users/<username>/Development/engine/src/out/host_debug_unopt_arm64/gen/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.14.0  -fno-strict-aliasing -fstack-protector-all -arch arm64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O0 -g2  -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -Wno-unknown-warning-option -Wno-deprecated-builtins  -c ../../flutter/fml/ascii_trie.cc -o  obj/flutter/fml/fml.ascii_trie.o"
  },
  {
    "file": "../../flutter/fml/ascii_trie.cc",
    "directory": "/Users/<username>/Development/engine/src/out/host_debug_unopt_arm64",
    "command": "/Users/<username>/Development/flutter_goma/gomacc  ../../buildtools/mac-x64/clang/bin/clang++ -MD -MF  clang_x64/obj/flutter/fml/fml.ascii_trie.o.d  -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE_JIT_RELEASE=4 \"-DDART_LEGACY_API=[[deprecated]]\" -DFLUTTER_RUNTIME_MODE=1 -DFLUTTER_JIT_RUNTIME=1  -I../.. -Iclang_x64/gen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../build/secondary/third_party/libcxx/config -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/dart/runtime -I../../third_party/dart/runtime/include -I../../third_party/abseil-cpp -isysroot /Users/<username>/Development/engine/src/out/host_debug_unopt_arm64/gen/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.14.0  -fno-strict-aliasing -fstack-protector-all -arch x86_64 -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-unqualified-std-cast-call -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -Wunguarded-availability -Wno-deprecated-declarations -fvisibility=hidden -stdlib=libc++ -Wstring-conversion -Wnewline-eof -O0 -g2  -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -Wno-unknown-warning-option -Wno-deprecated-builtins  -c ../../flutter/fml/ascii_trie.cc -o  clang_x64/obj/flutter/fml/fml.ascii_trie.o"
  },
]

From @zanderso :
Okay, so it's using the clang_x64 toolchain, and it's doing a "target_cpu" build into
obj/flutter/fml, and "host_cpu" build into clang_x64/obj/flutter/fml

So even though you're on an arm64 host, since the clang_x64 toolchain is being used,
the arm64 build is the cross build and the host build is x64.

and
It depends on the target. An example is the gen_snapshot that compiles Dart to x64 code.
It can only be built by a "host" build with the clang_x64 toolchain. We haven't done the
surgery to the build system to allow that level of granularity though, so we probably build
a lot of stuff for "host" that you won't need for local engine development on an M1.

@jonahwilliams points out:
When you provide a local-engine path, if its not a host build (like android_debug_arm64
or ios_debug), the tool guesses a corresponding host build directory

It would make sense for it to guess an _arm64 suffixed host directory on m1 macs,
but that hasn't been done yet as far as I can tell.

Another solution would be to only ever build into suffixed directories, but sym-link the unsuffixed directory to the correct suffixed directory for the local host, having:

foo_arm64 (contains only arm64 binaries)
foo_x64 (contains only Intel binaries)
foo -> one of the above depending on the host's architecture

source: gharchive/issue

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
showGeneralDialog sound with TransparentPointer as a parent of transitionBuilder

import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Material App Bar'),
        ),
        body: Builder(
          builder: (context) => Center(
            child: ElevatedButton(
              child: const Text('123'),
              onPressed: () {
                showGeneralDialog(
                  context: context,
                  pageBuilder: (_, __, ___) => Container(
                    width: 100,
                    height: 200.0,
                    color: Colors.red,
                  ),
                  transitionBuilder: (_, anim1, anim2, child) =>
                      DialogsBackdropFilter(
                    animation: anim1,
                    child: child,
                  ),
                  barrierColor: Colors.transparent,
                );
              },
            ),
          ),
        ),
      ),
    );
  }
}

class DialogsBackdropFilter extends StatelessWidget {
  /// Creates smooth transition for BackdropFilter on dialog showing.
  const DialogsBackdropFilter({
    super.key,
    required this.animation,
    required this.child,
  });

  final Animation<double> animation;
  final Widget child;

  @override
  Widget build(BuildContext context) {
    return TransparentForParentPointer(
      child: BackdropFilter(
        filter: ImageFilter.blur(
          sigmaX: 2.5 * animation.value,
          sigmaY: 2.5 * animation.value,
        ),
        child: FadeTransition(
          opacity: animation,
          child: child,
        ),
      ),
    );
  }
}

class TransparentForParentPointer extends SingleChildRenderObjectWidget {
  /// Creates a widget that is invisible for its parent to hit testing, but still
  /// allows its subtree to receive pointer events.
  const TransparentForParentPointer({
    Key? key,
    this.transparent = true,
    required Widget child,
  }) : super(key: key, child: child);

  /// Whether this widget is invisible to its parent during hit testing.
  final bool transparent;

  @override
  RenderTransparentPointer createRenderObject(BuildContext context) {
    return RenderTransparentPointer(
      transparent: transparent,
    );
  }

  @override
  void updateRenderObject(
    BuildContext context,
    RenderTransparentPointer renderObject,
  ) {
    renderObject.transparent = transparent;
  }

  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
    properties.add(DiagnosticsProperty<bool>('transparent', transparent));
  }
}

class RenderTransparentPointer extends RenderProxyBox {
  RenderTransparentPointer({
    RenderBox? child,
    bool transparent = true,
  })  : _transparent = transparent,
        super(child);

  bool get transparent => _transparent;
  bool _transparent;

  set transparent(bool value) {
    if (value == _transparent) return;
    _transparent = value;
  }

  @override
  bool hitTest(BoxHitTestResult result, {required Offset position}) {
    final hit = super.hitTest(result, position: position);
    return !transparent && hit;
  }

  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
    properties.add(DiagnosticsProperty<bool>('transparent', transparent));
  }
}

https://user-images.githubusercontent.com/63228361/202905434-216d6712-89fd-401d-822b-08ad86db293a.mp4
If you tap somewhere in the app's window region while dialog is shown, system default sound is played.
Flutter version: 3.3.8 from stable channel. Platform: Windows

@kirill-21  thanks for filing the issue. This issue is reproducible on the latest stable and master channels. It seems the issue only happens on desktop apps.

Android
iOS
Web
MacOS
Linux
Windows

✅
✅
✅
❌
❌
❌

✅: No Issue ❌: Issue reproduced

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.3.8, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.3.8 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (23 hours ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • 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.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] 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)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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

[✓] VS Code (version 1.73.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • iPhone 14 Pro Max (mobile) • 332079AF-E895-4685-910E-7B1E18B0C6B8 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[!] Flutter (Channel master, 3.6.0-6.0.pre.29, on macOS 13.0 22A380 darwin-x64, locale en-VN)
    • Flutter version 3.6.0-6.0.pre.29 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ee9bc784b5 (2 hours ago), 2022-11-20 19:32:24 -0500
    • Engine revision 271461837e
    • Dart version 2.19.0 (build 2.19.0-406.0.dev)
    • DevTools version 2.19.0
    • 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 (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • 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.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.3

[✓] 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)

[✓] IntelliJ IDEA Community Edition (version 2022.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • 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

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (3 available)
    • SM T225 (mobile) • R9JT3004VRJ • android-arm64  • Android 12 (API 31)
    • macOS (desktop)  • macos       • darwin-x64     • macOS 13.0 22A380 darwin-x64
    • Chrome (web)     • chrome      • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.


text:
The native background color on Windows should be overridable.

The native background color of a flutter view and flutter app window should be overridable so that users can make desktop apps with a custom shape.
See also https://github.com/flutter/flutter/issues/113975 (macOS) and https://github.com/flutter/flutter/issues/149920 (Linux).

(Edited to split Linux into a separate issue, since the fixes would be completely separate.)

authors: a-wallen stuartmorgan


text:
My solution to Flutter-Notch problem

Problem with fullscreen app on Android phones with notch
The essence of the problem
I must say right away I'm not a pro in flutter and android development.
There is a problem on Android 9 and 10 devices with notch in full screen mode.
First you need to set the cutout mode by setting a style in your activity.
Edit style.xml file like this:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="AppTheme" >
        <item name="android:windowLayoutInDisplayCutoutMode"> shortEdges </item>   <!-- most important thing -->
        <item name="android:windowBackground">?android:colorBackground</item>
    </style>
</resources>

To enable fullscreen mode we need to hide status bar and navigation bar. So at the start of the app add the following line...
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky,overlays: [] );

And that's our problem. The display cutout overflows our app bar.

SafeArea does not help in this situation in any way.
So, the most obvious solution to the problem is to add an insert on top yourself. But it is necessary to somehow determine the presence of the notch and its height.
In the MainActivity file.kt there is a method for determining the height of the notch using kotlin
private fun adjustToolbarMarginForNotch() {
        // Notch is only supported by >= Android 9
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
            val windowInsets = window.decorView.rootWindowInsets
            if (windowInsets != null) {
                val displayCutout = windowInsets.displayCutout
                if (displayCutout != null) {
                    val safeInsetTop = displayCutout.safeInsetTop  // safeInsetTop - our inset
                }
            }
        }
    }

But I haven't found a way to transfer the value to dart.
My solution
So my solution is to determine this inset just in dart. I found only one way to do that.
We can mesure it by systemGestureInsets which returns an area, where your tap belongs to status bar and not to our app.
Here is the discription from Google: "Simple swipe gestures that start within the systemGestureInsets areas are used by the system for page navigation and may not be delivered to the app"
stdCutoutWidth = MediaQueryData.fromWindow(window).systemGestureInsets.top;

But there is an another problem. Standart android hight of status bar is 24dp. So, if we use this value, then we will have an insert on the device without a notch. To solve this, we can only use values that exceed the standard Android value.
stdCutoutWidth = stdCutoutWidth>=48? stdCutoutWidth: 0;

I am using 48 as standart, because, according to my practice, devices with notch usually return exactly this value.
We can also measure the insert for the bottom just in case for devices with both notches.
stdCutoutWidthDown = MediaQueryData.fromWindow(window).systemGestureInsets.bottom;
stdCutoutWidthDown = stdCutoutWidthDown>48? stdCutoutWidthDown/2: 0;

Finally add this insert as padding before scaffold.
Widget build(BuildContext context) {
    return Container(
        width: double.infinity,
        height: double.infinity,
        color: Colors.red, // your color
        padding: EdgeInsets.only(top: stdCutoutWidth*0.75,bottom: stdCutoutWidthDown*0.75),
        child:Scaffold(
          appBar: ...
          body: ...
        )
     );
}

Result

Conclusion
I am not sure that this method is absolutely correct.
I'm also not sure if it works correctly on all devices because it doesn't have an Android 9.10 device with notch.
So, correct me in the comments, offer your thoughts. If this method is not suitable for your device, let me know.
You can find files in my repository

Hello @goliksim. Could you elaborate what the actual proposal is here? You have highlighted steps to take to "fix" the notch on some phones, but this doesn't look like a solution the framework could adopt. Could you provide a code sample that reproduces the issue and the solution? Which devices are you testing on?


text:
[iOS] NWPathMonitor Crash issue

An app crash occurred in crashlytics, but it seems to be an issue with the engine itself, but when I investigated, there was nothing related. May I know the cause of this crash?

Logs
Crashed: com.apple.root.background-qos
SIGSEGV 0x0000315c6c5aa340
0
libswiftCore.dylib
_swift_release_dealloc + 32
1
libswiftNetwork.dylib
assignWithTake for NWPath + 68
2
libswiftNetwork.dylib
outlined assign with take of NWPath + 84
3
libswiftNetwork.dylib
closure #1 in NWPathMonitor.init(requiredInterfaceType:) + 160
4
libswiftNetwork.dylib
thunk for @escaping @callee_guaranteed (@guaranteed OS_nw_path) -> () + 52
5
Network
__nw_path_necp_update_evaluator_block_invoke + 456
6
libdispatch.dylib
_dispatch_call_block_and_release + 32
7
libdispatch.dylib
_dispatch_client_callout + 20
8
libdispatch.dylib
_dispatch_root_queue_drain + 684
9
libdispatch.dylib
_dispatch_worker_thread2 + 164
10
libsystem_pthread.dylib
_pthread_wqthread + 228
11
libsystem_pthread.dylib
start_wqthread + 8

[✓] Flutter (Channel stable, 2.8.1, on macOS 11.6 20G165 darwin-x64, locale
    ko-KR)
    • Flutter version 2.8.1 at /Users/chungdan/Downloads/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (1 year, 1 month ago), 2021-12-16 08:37:33
      -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/chungdan/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = /Users/chungdan/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/chungdan/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor
      --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • 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.12+0-b1504.28-7817840)

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-java

Hi @hongdangodori
Is there any stack trace from Crashlytics that you can share? Also, please provide the list of affected device info and the percentage occurrence of the crash.
Moreover, is this issue reproducible locally when running with release mode? If so, please share the output of flutter run -v so that we may verify it.
Thank you!

Hi @huycozy
what I shared is stack trace from Crashlytics.

All crashes occur on iOS 16 or later. I think it's because of iOS 16 compatibility. I haven't been able to reproduce it on my phone. I don't know exactly under what circumstances it happens. The stacktrace is too unclear.

@flutter-symbolizer-bot https://github.com/flutter/flutter/issues/118021#issue-1520124405 flutter#v2.8.1 ios release arm64

@flutter-symbolizer-bot this flutter#v2.8.1 ios release arm64
Crashed: com.apple.root.background-qos
SIGSEGV 0x0000315c6c5aa340
0
libswiftCore.dylib
_swift_release_dealloc + 32
1
libswiftNetwork.dylib
assignWithTake for NWPath + 68
2
libswiftNetwork.dylib
outlined assign with take of NWPath + 84
3
libswiftNetwork.dylib
closure #1 in NWPathMonitor.init(requiredInterfaceType:) + 160
4
libswiftNetwork.dylib
thunk for @escaping @callee_guaranteed (@guaranteed OS_nw_path) -> () + 52
5
Network
__nw_path_necp_update_evaluator_block_invoke + 456
6
libdispatch.dylib
_dispatch_call_block_and_release + 32
7
libdispatch.dylib
_dispatch_client_callout + 20
8
libdispatch.dylib
_dispatch_root_queue_drain + 684
9
libdispatch.dylib
_dispatch_worker_thread2 + 164
10
libsystem_pthread.dylib
_pthread_wqthread + 228
11
libsystem_pthread.dylib
start_wqthread + 8

@flutter-symbolizer-bot this force ios flutter#v2.8.1 arm64 release
Crashed: com.apple.root.background-qos
SIGSEGV 0x0000315c6c5aa340
0
libswiftCore.dylib
_swift_release_dealloc + 32
1
libswiftNetwork.dylib
assignWithTake for NWPath + 68
2
libswiftNetwork.dylib
outlined assign with take of NWPath + 84
3
libswiftNetwork.dylib
closure #1 in NWPathMonitor.init(requiredInterfaceType:) + 160
4
libswiftNetwork.dylib
thunk for @escaping @callee_guaranteed (@guaranteed OS_nw_path) -> () + 52
5
Network
__nw_path_necp_update_evaluator_block_invoke + 456
6
libdispatch.dylib
_dispatch_call_block_and_release + 32
7
libdispatch.dylib
_dispatch_client_callout + 20
8
libdispatch.dylib
_dispatch_root_queue_drain + 684
9
libdispatch.dylib
_dispatch_worker_thread2 + 164
10
libsystem_pthread.dylib
_pthread_wqthread + 228
11
libsystem_pthread.dylib
start_wqthread + 8

Labeling this issue for further investigation from the team.

I don't think that API is used in the engine.  Could it be from a plugin you're using that's scanning the network, like connectivity_plus?
https://github.com/fluttercommunity/plus_plugins/blob/4b6ad02e0584f6edf29edea9f91c4ba43ec2539e/packages/connectivity_plus/connectivity_plus/ios/Classes/PathMonitorConnectivityProvider.swift

@jmagman oh we use connectivity_plus should I move this issue to connectivity_plus?

@jmagman oh we use connectivity_plus should I move this issue to connectivity_plus?

Yes, you should create a bug report with them.  Thanks!
Closing.

authors: hongdangodori huycozy jmagman


text:
[CP] Disable impeller_unittests

issue_link
https://github.com/flutter/flutter/issues/114872
Commit Hash
https://github.com/flutter/engine/commit/a04997c81f78746fdd44f8b6b3058bcc13ef39ad
Target
stable
pr_link
https://github.com/flutter/engine/pull/39597
Impacted Users
Flutter contributors hotfixing to stable
Impact Description
impeller_unittests are flaking on flutter-3.7-candidate.1 cherry picks, which I hit in https://github.com/flutter/engine/pull/39545#issuecomment-1428607969
Workaround
Re-run the tests
Risk
low
Test Coverage
yes
Validation Steps
Tests no longer flake in hotfixes

LGTM

authors: godofredoc jmagman


text:
Image picker is already active  when running integration test

Is there an existing issue for this?

[ ] I have searched the existing issues
[ ] I have read the guide to filing a bug

Steps to reproduce
image_picker: ^0.8.7+3
Expected results
i need to mock image
Actual results
PlatformException(already_active, Image picker is already active, null, null)
Code sample
Code sample
import 'dart:io';
import 'dart:typed_data';

import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:integration_test_flutter1/main.dart' as app;
import 'package:path_provider/path_provider.dart';
// flutter run  integration_test/app/signup/presentation/ui/sign_up_test.dart

void main() {
  group('test signup ', () {
    setUp(() {});
    IntegrationTestWidgetsFlutterBinding.ensureInitialized();

    ///mock image and put initial image [assets/image/dash.jpeg]
    const MethodChannel channel =
        MethodChannel('plugins.flutter.io/image_picker');
    channel.setMockMethodCallHandler((MethodCall methodCall) async {
      ByteData data = await rootBundle.load('assets/image/dash.jpeg');
      Uint8List bytes = data.buffer.asUint8List();
      Directory tempDir = await getTemporaryDirectory();
      File file = await File(
        '${tempDir.path}/tmp.tmp',
      ).writeAsBytes(bytes);
      debugPrint(file.path);
      return file.path;
    });
    testWidgets('sign up ', (WidgetTester tester) async {
      //build widget
      await tester.pumpApp(); //extension methode to pump [main()]

      ///find widget by key
      final addOrRemoveImage = find.byKey(const Key('add_or_remove_image'));

      final textFieldEmail = find.byKey(const Key('email_sign_up'));
      final textFieldName = find.byKey(const Key('name_sign_up'));
      final textFieldPassword = find.byKey(const Key('password_sign_up'));
      final textFieldSubmitPassword =
          find.byKey(const Key('submit_password_sign_up'));

      final buttonSignUp = find.byKey(const Key('sign_up_button'));
      final buttonPickDateTime = find.byKey(const Key('pick_date_time'));

      ///execute
      await tester.enterText(textFieldEmail, 'abd@abd');
      await tester.enterText(textFieldName, 'abd alazeez Alyosfi');
      await tester.enterText(textFieldPassword, '11111111');
      await tester.enterText(textFieldSubmitPassword, '11111111');
      await delay(2);

      ///chose date
      FocusManager.instance.primaryFocus?.unfocus();
      await tester.tap(buttonPickDateTime);
      await tester.pumpAndSettle();
      await delay();
      await tester.tap(find.text('15'));
      await delay();
      await tester.tap(find.text('OK'));
      await tester.pumpAndSettle();

      ///pick image

      await tester.tap(addOrRemoveImage);
      await delay(3);
      await tester.pumpAndSettle();

      ///delete iamge
      await tester.tap(addOrRemoveImage);
      await delay(3);
      await tester.pumpAndSettle();

      ///pick image

      await tester.tap(addOrRemoveImage);
      await delay(3);
      await tester.pumpAndSettle();

      ///sign up
      await tester.tap(buttonSignUp);
      await delay(2);
      await tester.pumpAndSettle();

      await tester.pumpAndSettle();
    });
  });
}

extension on WidgetTester {
  Future<void> pumpApp() async {
    app.main();
    await pumpAndSettle();
  }
}

Future<void> delay([int i = 1]) async {
  await Future.delayed(Duration(milliseconds: 500 * i));
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
/home/abd-alazeez/snap/flutter/common/flutter/bin/flutter --no-color test --machine --start-paused -d RR8M607ENRK integration_test/app/signup/presentation/ui/sign_up_test.dart
Testing started at 4:38 PM ...
Running Gradle task 'assembleDebug'...                             24.7s
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app-debug.apk...          55.5s

══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following PlatformException was thrown running a test:
PlatformException(already_active, Image picker is already active, null, null)

When the exception was thrown, this was the stack:
#0      ImagePickerApi.pickImages (package:image_picker_android/src/messages.g.dart:262:7)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)

The test description was:
  sign up
════════════════════════════════════════════════════════════════════════════════════════════════════
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following assertion was thrown running a test (but after the test had completed):
'package:flutter_test/src/binding.dart': Failed assertion: line 1822 pos 12: 'inTest': is not true.

When the exception was thrown, this was the stack:
#2      LiveTestWidgetsFlutterBinding.pump (package:flutter_test/src/binding.dart:1822:12)
#3      WidgetTester.pumpAndSettle.<anonymous closure> (package:flutter_test/src/widget_tester.dart:679:23)
#6      TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:71:41)
#7      WidgetTester.pumpAndSettle (package:flutter_test/src/widget_tester.dart:672:27)
#8      main.<anonymous closure>.<anonymous closure> (file:///home/abd-alazeez/StudioProjects/humy-pioneer/integration_test_flutter1/integration_test/app/signup/presentation/ui/sign_up_test.dart:63:20)
<asynchronous suspension>
<asynchronous suspension>
(elided 5 frames from class _AssertionError, dart:async, and package:stack_trace)
════════════════════════════════════════════════════════════════════════════════════════════════════

Test failed. See exception logs above.
The test description was: sign up

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.1, on Ubuntu 22.04.1 LTS 5.19.0-38-generic, locale en_US.UTF-8)                                                                  Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.3)
[✓] VS Code
[✓] Connected device (3 available)

i need to mock image

No endorsed implementations use the channel you are mocking, so you are using the actual plugin rather than your mocks. I would recommend reading https://docs.flutter.dev/development/packages-and-plugins/plugins-in-tests
Closing as this is a bug in the provided test code, not Flutter.


text:
Assertion error in painting.dart while redirecting to home page

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Launch the application.
Wait for the splash screen to appear.
Observe the splash screen with the blue background and account icon.
After 2 seconds, the app should automatically navigate to the login page.
On the login page, enter a valid username and password.
Tap on the "Login" button.
The app should attempt to authenticate the user.
Observe that instead of redirecting to the home page, an assertion error is thrown and this is error

_AssertionError ('dart:ui/painting.dart': Failed assertion: line 184 pos 12: '': is not true.)

Expected results
I expect when i click login button then should open my home page
Actual results

Launch the application.
Wait for the splash screen to appear.
Observe the splash screen with the blue background and account icon.
After 2 seconds, the app should automatically navigate to the login page.
On the login page, enter a valid username and password.
Tap on the "Login" button.
The app should attempt to authenticate the user.
Observe that instead of redirecting to the home page, an assertion error is thrown and this is error

_AssertionError ('dart:ui/painting.dart': Failed assertion: line 184 pos 12: '': is not true.)

Code sample
Code sample
import 'dart:async';

import 'package:flutter/material.dart';
import 'login_page.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(),
      home: SplashPage(),
    );
  }
}

class SplashPage extends StatefulWidget {
  const SplashPage({Key? key}) : super(key: key);

  @override
  State<SplashPage> createState() => _SplashPageState();
}

class _SplashPageState extends State<SplashPage> {
  @override
  void initState() {
    // TODO: implement initState
    super.initState();

    Timer(
      Duration(seconds: 2),
      () {
        Navigator.pushReplacement(
            context,
            MaterialPageRoute(
              builder: (context) => LoginPage(),
            ));
      },
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: Colors.blue,
        child: Center(
          child: Icon(
            Icons.account_circle,
            color: Colors.white,
            size: 50,
          ),
        ),
      ),
    );
  }
}
]

`import 'package:animated_container/home_page.dart';
import 'package:flutter/material.dart';

class LoginPage extends StatelessWidget {
  final TextEditingController uNameController = TextEditingController();
  final TextEditingController passController = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Login'),
      ),
      body: Container(
        padding: EdgeInsets.all(20.0),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Icon(
              Icons.account_circle,
              color: Colors.blue,
              size: 70.0,
            ),
            SizedBox(height: 20.0),
            TextField(
              controller: uNameController,
              decoration: InputDecoration(
                prefixIcon: Icon(Icons.account_circle_outlined),
                labelText: 'Username',
                contentPadding: EdgeInsets.symmetric(
                  vertical: 12.0,
                  horizontal: 16.0,
                ),
                border: OutlineInputBorder(
                  borderRadius: BorderRadius.circular(10.0),
                  borderSide: BorderSide(color: Colors.blue),
                ),
                focusedBorder: OutlineInputBorder(
                  borderRadius: BorderRadius.circular(10.0),
                  borderSide: BorderSide(color: Colors.blue),
                ),
              ),
            ),
            SizedBox(height: 20.0),
            TextField(
              controller: passController,
              decoration: InputDecoration(
                prefixIcon: Icon(Icons.lock),
                labelText: 'Password',
                contentPadding: EdgeInsets.symmetric(
                  vertical: 12.0,
                  horizontal: 12.0,
                ),
                border: OutlineInputBorder(
                  borderRadius: BorderRadius.circular(10.0),
                  borderSide: BorderSide(color: Colors.blue),
                ),
                focusedBorder: OutlineInputBorder(
                  borderRadius: BorderRadius.circular(10.0),
                  borderSide: BorderSide(color: Colors.blue),
                ),
              ),
              // obscureText: true,
            ),
            SizedBox(height: 20.0),
            ElevatedButton(
              onPressed: () {
                Navigator.pushReplacement(
                  context,
                  MaterialPageRoute(builder: (context) => HomePage()),
                );
              },
              child: Text('Login'),
            ),
          ],
        ),
      ),
    );
  }
}
`

`import 'package:flutter/material.dart';

class HomePage extends StatelessWidget{
  @override
  Widget build(BuildContext context){
    return Scaffold(
      appBar: AppBar(
        title: Center(child: Text('Home')),
      ),

      body:Container(
        color: Colors.blue.shade100,
        child: Center(
          child: Icon(Icons.home, color: Colors.white.withOpacity(8),),
        ),
      ),

    );
  }
}`

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
Parameter format not correct -
√  Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app-debug.apk...
Debug service listening on ws://127.0.0.1:62034/J1ccG9PBW2M=/ws
Syncing files to device sdk gphone64 x86 64...
W/Parcel  (12439): Expecting binder but got null!
D/EGL_emulation(12439): app_time_stats: avg=897.26ms min=3.36ms max=1791.17ms count=2
D/EGL_emulation(12439): app_time_stats: avg=467.25ms min=4.11ms max=1704.11ms count=4

======== Exception caught by widgets library =======================================================
The following assertion was thrown building HomePage(dirty):
'dart:ui/painting.dart': Failed assertion: line 184 pos 12: '<optimized out>': is not true.

The relevant error-causing widget was:
  HomePage HomePage:file:///C:/Users/linka/Desktop/Flutter%20Projects/login/lib/login_page.dart:70:59
When the exception was thrown, this was the stack:
#2      Color.withOpacity (dart:ui/painting.dart:184:12)
#3      HomePage.build (package:login/home_page.dart:15:33)
#4      StatelessElement.build (package:flutter/src/widgets/framework.dart:5156:49)
#5      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5086:15)
#6      Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#7      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5068:5)
#8      ComponentElement.mount (package:flutter/src/widgets/framework.dart:5062:5)
...     Normal element mounting (220 frames)
#228    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3971:16)
#229    MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6570:36)
#230    Element.updateChild (package:flutter/src/widgets/framework.dart:3708:18)
#231    RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:6153:32)
#232    MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6595:17)
#233    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#234    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5111:16)
#235    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5251:11)
#236    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#237    StatefulElement.update (package:flutter/src/widgets/framework.dart:5274:5)
#238    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#239    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5111:16)
#240    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#241    ProxyElement.update (package:flutter/src/widgets/framework.dart:5417:5)
#242    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#243    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5111:16)
#244    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#245    ProxyElement.update (package:flutter/src/widgets/framework.dart:5417:5)
#246    _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:107:11)
#247    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#248    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5111:16)
#249    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5251:11)
#250    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#251    StatefulElement.update (package:flutter/src/widgets/framework.dart:5274:5)
#252    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#253    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5111:16)
#254    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#255    ProxyElement.update (package:flutter/src/widgets/framework.dart:5417:5)
#256    _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:107:11)
#257    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#258    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5111:16)
#259    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5251:11)
#260    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#261    StatefulElement.update (package:flutter/src/widgets/framework.dart:5274:5)
#262    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#263    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5111:16)
#264    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5251:11)
#265    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#266    StatefulElement.update (package:flutter/src/widgets/framework.dart:5274:5)
#267    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#268    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6442:14)
#269    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#270    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6442:14)
#271    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#272    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5111:16)
#273    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#274    ProxyElement.update (package:flutter/src/widgets/framework.dart:5417:5)
#275    Element.updateChild (package:flutter/src/widgets/framework.dart:3686:15)
#276    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5111:16)
#277    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5251:11)
#278    Element.rebuild (package:flutter/src/widgets/framework.dart:4805:7)
#279    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2780:19)
#280    WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:903:21)
#281    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:358:5)
#282    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1284:15)
#283    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1214:9)
#284    SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1072:5)
#285    _invoke (dart:ui/hooks.dart:142:13)
#286    PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:359:5)
#287    _drawFrame (dart:ui/hooks.dart:112:31)
(elided 2 frames from class _AssertionError)
====================================================================================================
]

Flutter Doctor output
Doctor output
[[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.22621.1848], locale en-IN)
    • Flutter version 3.10.5 on channel stable at C:\Users\linka\Desktop\flutter_windows_3.7.12-stable\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (10 days ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at C:\Users\linka\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.5.5)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.5.33627.172
    • Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2022.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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 17.0.6+0-b2043.56-9586694)

[√] VS Code (version 1.79.2)
    • VS Code at C:\Users\linka\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.66.0

[√] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22621.1848]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 114.0.5735.134
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 114.0.1823.43

[√] Network resources
    • All expected network resources are available.

• No issues found!]

Please Resolve this error as soon as possible if any issue with my repot or I'm doing any fault just tell me.


text:
SizedBox with WidgetSpan renders single line height even when it's height is set to 0

Copied from internal bug b/292502848
Expected: When height passed to _VerticalSpaceSpan is 0.0, no space should render between the TextSpan(s). See TextSpan(s) without spacer in between for expected result.
Actual: TextSpan(s) render with some space between them (equal to single line height?).
Screenshot:

Minimal code to reproduce the bug:
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: MyWidget(),
      ),
    );
  }
}

class MyWidget extends StatelessWidget {
  final spacer = _VerticalSpaceSpan(0.0);
  @override
  Widget build(BuildContext context) {
    return RichText(
      text: TextSpan(children: [
        const TextSpan(
          text: '• Fist Element, with spacer below\n',
        ),
        spacer,
        const TextSpan(
          text: '• 2nd Element, with spacer below\n',
        ),
        spacer,
        const TextSpan(
          text: '• 3rd Element, NO spacer below\n',
        ),
        const TextSpan(
          text: '• 4th Element, NO spacer below\n',
        ),
        const TextSpan(
          text: '• Last Element\n',
        ),
      ]),
    );
  }
}

class _VerticalSpaceSpan extends WidgetSpan {
  _VerticalSpaceSpan(double height)
      : super(child: SizedBox(height: height, width: double.infinity));
}

Reason for prioritization:
Marked as P3, does not block a launch as we managed to find a workaround in current usage, but should be fixed in longer run.

Thank you for the report. I also see this issue on the latest Flutter stable and master channels.
Inspecting SizedBox in Widget Inspector, the height is also 0.0:

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.0.1 22A400 darwin-x64, locale en-VN)
    • Flutter version 3.10.6 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f468f3366c (5 hours ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • 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 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.80.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.68.0

[✓] Connected device (3 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 114.0.5735.198

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.13.0-9.0.pre.43, on macOS 13.4.1 22F770820d darwin-x64, locale en-VN)
    • Flutter version 3.13.0-9.0.pre.43 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 0733c96e7d (4 hours ago), 2023-07-24 21:55:24 -0400
    • Engine revision 9a0192d965
    • Dart version 3.1.0 (build 3.1.0-333.0.dev)
    • DevTools version 2.25.0
    • 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 (Android SDK version 32.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • 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 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.80.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.68.0

[✓] Connected device (3 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 13.4.1 22F770820d darwin-x64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 114.0.5735.198

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

@kshitizsrivstv, Hello,
I am also facing the same issue with respect to height. Please can you provide the workaround you found?

Hi @ritheshSalyan , our use-case was that we wanted zero spacing. So workaround was simply adding an if condition to not render spacer like this -
class MyWidget extends StatelessWidget {
  final height = 0;
  final spacer = _VerticalSpaceSpan(height);
  @override
  Widget build(BuildContext context) {
    return RichText(
      text: TextSpan(children: [
        const TextSpan(
          text: '• Fist Element\n',
        ),
        if (height != 0) spacer,
        const TextSpan(
          text: '• 2nd Element\n',
        ),
      ]),
    );
  }
}

authors: huycozy kshitizsrivstv ritheshSalyan


text:
Flutter build_deps scripts not compatible with glinux (rodete)

Steps to Reproduce
Per instructions in https://github.com/flutter/engine/blob/master/CONTRIBUTING.md, try to run these scripts on a glinux workstation (fresh install of rodete, not in-place upgrade of goobuntu, in case that matters):
sudo ./build/install-build-deps-android.sh
sudo ./build/install-build-deps.sh
The second script is called by the first one.
The second one needs to be patched to understand "rodete" like this
debian_codenames="(stretch|rodete)"
and you still need to adjust the list of packages (e.g. "libpng12-0 " must be removed).
Then, the first script cannot install the openjdk:

Package openjdk-7-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'openjdk-7-jre' has no installation candidate

The next issue may be a consequence of the above:

cd /usr/local/google/home/regis/flutter/examples/flutter_gallery
flutter run --release --local-engine=android_release --local-engine-src-path=/usr/local/google/home/regis/flutter/engine/src
Initializing gradle...                                0.9s
Resolving dependencies...                                /

Error running Gradle:
Unable to download needed Android SDK components, as the following licenses have not been accepted:
Android SDK Build-Tools 25.0.3, Android SDK Platform 25

To resolve this, please run the following command in a Terminal:
flutter doctor --android-licenses

Executing "flutter doctor" does not complain, see output below, but "flutter doctor --android-licenses" as suggested by the error above results in a crash:

flutter doctor --android-licenses
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: ed723858534243a6)
Crash report written to /usr/local/google/home/regis/flutter/engine/src/flutter_04.log;
please let us know at https://github.com/flutter/flutter/issues.

The log is pasted below:
Logs

Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter doctor --android-licenses
exception
ArgumentError: Invalid argument(s): Cannot find executable for /usr/local/google/home/regis/flutter/engine/src/third_party/android_tools/sdk/tools/bin/sdkmanager.
#0      _getExecutable (package:process/src/interface/local_process_manager.dart:113)
#1      LocalProcessManager.start (package:process/src/interface/local_process_manager.dart:41)
#2      runCommand (package:flutter_tools/src/base/process.dart:108)
#3      AndroidWorkflow.runLicenseManager (package:flutter_tools/src/android/android_workflow.dart:193)
<asynchronous suspension>
#4      Doctor.diagnose (package:flutter_tools/src/doctor.dart:101)
<asynchronous suspension>
#5      DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:27)
<asynchronous suspension>
#6      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:256)
<asynchronous suspension>
#7      FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:196)
<asynchronous suspension>
#8      CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#9      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:279)
<asynchronous suspension>
#10     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#11     new Future.sync (dart:async/future.dart:222)
#12     CommandRunner.run (package:args/command_runner.dart:109)
#13     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:162)
#14     run.<anonymous closure> (package:flutter_tools/runner.dart:89)
<asynchronous suspension>
#15     AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#16     AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#17     _rootRun (dart:async/zone.dart:1120)
#18     _CustomZone.run (dart:async/zone.dart:1001)
#19     runZoned (dart:async/zone.dart:1467)
#20     AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#21     run (package:flutter_tools/runner.dart:60)
<asynchronous suspension>
#22     main (package:flutter_tools/executable.dart:43)
<asynchronous suspension>
#23     main (file:///usr/local/google/home/regis/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#24     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:263)
#25     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)

flutter doctor
[✓] Flutter (on Linux, locale en_US.UTF-8, channel master)
    • Flutter at /usr/local/google/home/regis/flutter
    • Framework revision 3979dafaed (22 hours ago), 2017-12-07 15:34:42 -0800
    • Engine revision f888186e50
    • Tools Dart version 1.25.0-dev.11.0
    • Engine Dart version 2.0.0-edge.e7b7b68ef6e7b1e5df379b628134764c489901dc

[✓] Android toolchain - develop for Android devices (Android SDK 22.0.1)
    • Android SDK at /usr/local/google/home/regis/flutter/engine/src/third_party/android_tools/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-22, build-tools 22.0.1
    • Java binary at: /usr/local/buildtools/java/jdk/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-google-v7-177054630-176677371)

[✗] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instructions).

[✓] Connected devices
    • Nexus 4 • 04ea030e56956826 • android-arm • Android 5.1.1 (API 22)

The doctor prescribed Android Studio, which I installed.
At least, "flutter doctor --android-licenses" is succeeding, but "flutter run ..." still complains that I need to run "flutter doctor --android-licenses", which I just did.

regis@belenos:~/flutter/engine/src$ flutter doctor
[✓] Flutter (on Linux, locale en_US.UTF-8, channel master)
• Flutter at /usr/local/google/home/regis/flutter
• Framework revision 3979dafaed (22 hours ago), 2017-12-07 15:34:42 -0800
• Engine revision f888186e50
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-edge.e7b7b68ef6e7b1e5df379b628134764c489901dc
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
• Android SDK at /usr/local/google/home/regis/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.2
• Java binary at: /usr/local/google/home/regis/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] Android Studio (version 3.0)
• Android Studio at /usr/local/google/home/regis/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] Connected devices
• Nexus 4 • 04ea030e56956826 • android-arm • Android 5.1.1 (API 22)
regis@belenos:~/flutter/engine/src$ flutter doctor --android-licenses
Warning: File /usr/local/google/home/regis/.android/repositories.cfg could not be loaded.
All SDK package licenses accepted.======] 100% Computing updates...
regis@belenos:~/flutter/engine/src$ test_flutter.sh

cd /usr/local/google/home/regis/flutter/examples/flutter_gallery
flutter run --release --local-engine=android_release --local-engine-src-path=/usr/local/google/home/regis/flutter/engine/src
Initializing gradle...                                0.8s
Resolving dependencies...                                -

Error running Gradle:
Unable to download needed Android SDK components, as the following licenses have not been accepted:
Android SDK Build-Tools 25.0.3, Android SDK Platform 25
To resolve this, please run the following command in a Terminal:
flutter doctor --android-licenses

Apparently, openjdk-8-jre and openjdk-8-jdk are already installed on rodete. So the script install-build-deps-android.sh should handle $lsb_release == "rodete" exactly as $lsb_release == "xenial".

cc @jakobr-google @tvolkert @cbracken

I think we should go ahead and add that conditional check to the install-build-deps-android.sh script. @a-siva mentioned that this only happens for users that are using a fresh Rodete image (instead of performing an in-place update).

@chinmaygarde, I do not have access to flutter buildroot. I have tested the patches below and they work on my rodete workstation, which was a fresh install.
Would you mind taking care of the actual pull request to flutter buildroot? Thanks.
diff --git a/build/install-build-deps-android.sh b/build/install-build-deps-android.sh
index 7b3d167..cde747c 100755
--- a/build/install-build-deps-android.sh
+++ b/build/install-build-deps-android.sh
@@ -56,7 +56,7 @@ else
   sudo apt-get -y install libncurses5:i386 libstdc++6:i386 zlib1g:i386
 fi

-if [[ $lsb_release == "xenial" ]]; then
+if [[ $lsb_release == "xenial" || $lsb_release == "rodete" ]]; then
   sudo apt-get -y install openjdk-8-jre openjdk-8-jdk
   sudo update-java-alternatives -s java-1.8.0-openjdk-amd64
   sudo apt-get -y install ant
diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh
index a40a4a6..932772d 100755
--- a/build/install-build-deps.sh
+++ b/build/install-build-deps.sh
@@ -66,7 +66,7 @@ fi
 distro=$(lsb_release --id --short)
 codename=$(lsb_release --codename --short)
 ubuntu_codenames="(precise|trusty|utopic|vivid|xenial)"
-debian_codenames="(stretch)"
+debian_codenames="(stretch|rodete)"
 if [ 0 -eq "${do_unsupported-0}" ] && [ 0 -eq "${do_quick_check-0}" ] ; then
   if [[ ! $codename =~ $ubuntu_codenames && ! $codename =~ $debian_codenames ]]; then
     echo "ERROR: Only Ubuntu 12.04 (precise), 14.04 (trusty), " \
@@ -105,7 +105,7 @@ dev_list="bison cdbs curl dpkg-dev elfutils devscripts fakeroot
 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libcap2 libcups2 libexpat1
           libexif12 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0
           libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0
-          libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libx11-6
+          libspeechd2 libstdc++6 libsqlite3-0 libx11-6
           libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6
           libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1
           libxtst6 zlib1g"
@@ -184,7 +184,11 @@ if package_exists libbrlapi0.6; then
 else
   dev_list="${dev_list} libbrlapi0.5"
 fi
-
+if package_exists libpng16-16; then
+  lib_list="$lib_list libpng16-16"
+else
+  lib_list="$lib_list libpng12-0"
+fi

 # Some packages are only needed if the distribution actually supports
 # installing them.

authors: a-siva chinmaygarde crelier


text:
[tool_crash] ProcessException: Failed to find "D:\src\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe" in the search path. Command: D:\src\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe, OS error code: 0

Command
flutter run

Steps to Reproduce

...
...
...

Logs
ProcessException: Failed to find "D:\src\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe" in the search path. Command: D:\src\flutter\bin\cache\dart-sdk\bin\dartaotruntime.exe, OS error code: 0
#0      LocalProcessManager.start (package:process/src/interface/local_process_manager.dart:56:7)
#1      ErrorHandlingProcessManager.start.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:686:24)
#2      _run (package:flutter_tools/src/base/error_handling_io.dart:556:20)
#3      ErrorHandlingProcessManager.start (package:flutter_tools/src/base/error_handling_io.dart:685:12)
#4      DefaultResidentCompiler._compile (package:flutter_tools/src/compile.dart:874:37)
#5      DefaultResidentCompiler._recompile (package:flutter_tools/src/compile.dart:734:14)
#6      _RecompileRequest._run (package:flutter_tools/src/compile.dart:420:16)
#7      _CompilationRequest.run (package:flutter_tools/src/compile.dart:394:30)
#8      DefaultResidentCompiler._handleCompilationRequest (package:flutter_tools/src/compile.dart:780:23)
#9      _rootRunUnary (dart:async/zone.dart:1407:47)
#10     _CustomZone.runUnary (dart:async/zone.dart:1308:19)
#11     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217:7)
#12     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#13     _DelayedData.perform (dart:async/stream_impl.dart:515:14)
#14     _PendingEvents.handleNext (dart:async/stream_impl.dart:620:11)
#15     _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:591:7)
#16     _rootRun (dart:async/zone.dart:1391:47)
#17     _CustomZone.run (dart:async/zone.dart:1301:19)
#18     _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#19     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249:23)
#20     _rootRun (dart:async/zone.dart:1399:13)
#21     _CustomZone.run (dart:async/zone.dart:1301:19)
#22     _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#23     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249:23)
#24     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)

[✓] Flutter (Channel stable, 3.19.3, on Microsoft Windows [Version 10.0.22621.3296], locale en-US)
    • Flutter version 3.19.3 on channel stable at D:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ba39319843 (4 weeks ago), 2024-03-07 15:22:21 -0600
    • Engine revision 2e4ba9c6fb
    • Dart version 3.3.1
    • DevTools version 2.31.1

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\reetha\AppData\Local\sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✗] Visual Studio - develop Windows apps
    ✗ Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default
      components

[✓] Android Studio (version 2023.2)
    • Android Studio at D:\panel\android
    • 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 17.0.9+0--11185874)

[✓] VS Code (version 1.87.2)
    • VS Code at C:\Users\reetha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.84.0

[✓] Connected device (4 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)       • windows       • windows-x64    • Microsoft Windows [Version
      10.0.22621.3296]
    • Chrome (web)            • chrome        • web-javascript • Google Chrome 122.0.6261.129
    • Edge (web)              • edge          • web-javascript • Microsoft Edge 123.0.2420.65

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: ba393198430278b6595976de84fe170f553cc728

Closing this as a duplicate of https://github.com/flutter/flutter/issues/143391

authors: ReethaMaria danagbemava-nc