Skip to content

Improve "DropdownButton's selectedItemBuilder" assertion exception  #92773

Closed

Description

@noga-dev

Run this:

import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData.dark(),
      home: Scaffold(
        body: DropdownButtonHideUnderline(
          child: DropdownButtonFormField<Color>(
            selectedItemBuilder: (context) {
              return [
                DropdownMenuItem<Color>(
                  value: Colors.green,
                  child: RichText(
                    text: TextSpan(
                      children: [
                        WidgetSpan(
                          child: Padding(
                            padding: const EdgeInsets.only(
                              right: 10,
                            ),
                            child: Icon(Icons.ac_unit),
                          ),
                          baseline: TextBaseline.alphabetic,
                          alignment: PlaceholderAlignment.aboveBaseline,
                        ),
                        const TextSpan(text: 'By '),
                        TextSpan(
                          text: 'test',
                          style: const TextStyle(
                            fontWeight: FontWeight.w700,
                          ),
                        ),
                      ],
                    ),
                  ),
                )
              ];
            },
            icon: SizedBox(),
            value: Colors.accents[1],
            decoration: const InputDecoration(
              enabledBorder: UnderlineInputBorder(
                borderSide: BorderSide(
                  color: Colors.transparent,
                ),
              ),
              focusedBorder: UnderlineInputBorder(
                borderSide: BorderSide(
                  color: Colors.transparent,
                ),
              ),
              labelStyle: TextStyle(
                color: Colors.black,
                fontWeight: FontWeight.w500,
                fontSize: 14,
              ),
            ),
            items: Colors.accents.map((value) {
              return DropdownMenuItem<Color>(
                value: value,
                child: RichText(
                  text: TextSpan(
                    children: [
                      TextSpan(
                        text: value.toString(),
                        style: const TextStyle(
                          fontWeight: FontWeight.w700,
                        ),
                      ),
                    ],
                  ),
                ),
              );
            }).toList(),
            onChanged: (value) {},
          ),
        ),
      ),
    ),
  );
}

Doctor:

[✓] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.22000.282], locale en-US)
    • Flutter version 2.5.3 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (2 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Agone\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.5)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31729.503
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2020.3)
    • 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 11.0.10+0-b96-7249189)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2021.2.2
    • 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.61.2)
    • VS Code at C:\Users\Agone\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.27.0

[✓] VS Code (version 1.62.0-insider)
    • VS Code at C:\Users\Agone\AppData\Local\Programs\Microsoft VS Code Insiders
    • Flutter extension version 3.27.0

[✓] Connected device (1 available)
    • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.282]

• No issues found!

Selected item disappears as a result.

Activity

  1. changed the title [-]using "DropdownButton's selectedItemBuilder" throws assertion exception[/-] [+]using "DropdownButton's selectedItemBuilder" throws assertion exception (copy-paste reproducible code provided)[/+] on Oct 30, 2021
  2. or-adar commented on Oct 31, 2021

    @or-adar

    Your problem is that the function assigned to "selectedItemBuilder" should return a list containing customized widgets corresponding to your items attribute under "DropdownButtonFormField",
    meaning that they should both equal in size,
    so when you pick a "DropdownMenuItem" the "DropdownButton" widget should display the corresponding widget residing at the same index as the selected item in items.

    so the selectedItemBuilder property should look somewhat like this:

    selectedItemBuilder: (context) => Colors.accents.map((value) =>
          RichText(
            text: TextSpan(
              children: [
                WidgetSpan(
                  child: Padding(
                    padding: const EdgeInsets.only(
                      right: 10,
                    ),
                    child: Icon(Icons.ac_unit),
                  ),
                  baseline: TextBaseline.alphabetic,
                  alignment: PlaceholderAlignment.aboveBaseline,
                ),
                const TextSpan(text: 'By '),
                TextSpan(
                  text: 'test',
                  style: const TextStyle(
                    fontWeight: FontWeight.w700,
                  ),
                ),
              ],
            ),
          )).toList()
  3. noga-dev commented on Oct 31, 2021

    @noga-dev
    Author

    Your problem is that the function assigned to "selectedItemBuilder" should return a list containing customized widgets corresponding to your items attribute under "DropdownButtonFormField", meaning that they should both equal in size, so when you pick a "DropdownMenuItem" the "DropdownButton" widget should display the corresponding widget residing at the same index as the selected item in items.

    so the selectedItemBuilder property should look somewhat like this:

    selectedItemBuilder: (context) => Colors.accents.map((value) =>
          RichText(
            text: TextSpan(
              children: [
                WidgetSpan(
                  child: Padding(
                    padding: const EdgeInsets.only(
                      right: 10,
                    ),
                    child: Icon(Icons.ac_unit),
                  ),
                  baseline: TextBaseline.alphabetic,
                  alignment: PlaceholderAlignment.aboveBaseline,
                ),
                const TextSpan(text: 'By '),
                TextSpan(
                  text: 'test',
                  style: const TextStyle(
                    fontWeight: FontWeight.w700,
                  ),
                ),
              ],
            ),
          )).toList()

    Nice catch. This fixed the issue.

    In retrospect the 'index' keyword should have tipped me off. Nonetheless, imo the error could be improved as I didn't care about the actual value selected or its siblings and only wanted to show a specific widget in the 'selectedItemBuilder.'

    I'll leave this open for now to suggest a better way to modify the error message as I feel it's ambiguous enough to warrant a change in wording. Any team member is welcome to close this issue once my feedback has been acknowledged.

  4. danagbemava-nc commented on Nov 1, 2021

    @danagbemava-nc
    Member

    @agondev, can you share the assertion message that you got initially?

  5. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 1, 2021
  6. noga-dev commented on Nov 1, 2021

    @noga-dev
    Author

    @agondev, can you share the assertion message that you got initially?

    Minimal reproduction error
    Launching lib\main.dart on Windows in debug mode...
    Connecting to VM Service at ws://127.0.0.1:61443/nvjaBpEWius=/ws
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    The following assertion was thrown during paint():
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 717 pos 12: 'child != null': is not true.
    
    Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
    In either case, please report this assertion by filing a bug on GitHub:
      https://github.com/flutter/flutter/issues/new?template=2_bug.md
    
    The relevant error-causing widget was
    DropdownButtonFormField<Color>
    When the exception was thrown, this was the stack
    #2      RenderIndexedStack._childAtIndex
    #3      RenderIndexedStack.paintStack
    #4      RenderStack.paint
    #5      RenderObject._paintWithContext
    #6      PaintingContext.paintChild
    #7      RenderBoxContainerDefaultsMixin.defaultPaint
    #8      RenderFlex.paint
    #9      RenderObject._paintWithContext
    #10     PaintingContext.paintChild
    #11     RenderShiftedBox.paint
    #12     RenderObject._paintWithContext
    #13     PaintingContext.paintChild
    #14     RenderProxyBoxMixin.paint
    #15     RenderObject._paintWithContext
    #16     PaintingContext.paintChild
    #17     RenderProxyBoxMixin.paint
    #18     RenderObject._paintWithContext
    #19     PaintingContext.paintChild
    #20     RenderProxyBoxMixin.paint
    #21     RenderObject._paintWithContext
    #22     PaintingContext.paintChild
    #23     RenderProxyBoxMixin.paint
    #24     RenderObject._paintWithContext
    #25     PaintingContext.paintChild
    #26     RenderProxyBoxMixin.paint
    #27     RenderObject._paintWithContext
    #28     PaintingContext.paintChild
    #29     RenderProxyBoxMixin.paint
    #30     RenderObject._paintWithContext
    #31     PaintingContext.paintChild
    #32     _RenderDecoration.paint.doPaint
    #33     _RenderDecoration.paint
    #34     RenderObject._paintWithContext
    #35     PaintingContext.paintChild
    #36     RenderProxyBoxMixin.paint
    #37     RenderObject._paintWithContext
    #38     PaintingContext.paintChild
    #39     RenderBoxContainerDefaultsMixin.defaultPaint
    #40     RenderCustomMultiChildLayoutBox.paint
    #41     RenderObject._paintWithContext
    #42     PaintingContext.paintChild
    #43     RenderProxyBoxMixin.paint
    #44     _RenderInkFeatures.paint
    #45     RenderObject._paintWithContext
    #46     PaintingContext.paintChild
    #47     RenderProxyBoxMixin.paint
    #48     PaintingContext.pushLayer
    #49     RenderPhysicalModel.paint
    #50     RenderObject._paintWithContext
    #51     PaintingContext.paintChild
    #52     RenderProxyBoxMixin.paint
    #53     RenderObject._paintWithContext
    #54     PaintingContext.paintChild
    #55     RenderProxyBoxMixin.paint
    #56     RenderObject._paintWithContext
    #57     PaintingContext._repaintCompositedChild
    #58     PaintingContext.repaintCompositedChild
    #59     PaintingContext._compositeChild
    #60     PaintingContext.paintChild
    #61     RenderProxyBoxMixin.paint
    #62     RenderObject._paintWithContext
    #63     PaintingContext.paintChild
    #64     RenderAnimatedOpacityMixin.paint
    #65     RenderObject._paintWithContext
    #66     PaintingContext.paintChild
    #67     RenderProxyBoxMixin.paint
    #68     RenderFractionalTranslation.paint
    #69     RenderObject._paintWithContext
    #70     PaintingContext.paintChild
    #71     RenderProxyBoxMixin.paint
    #72     RenderObject._paintWithContext
    #73     PaintingContext._repaintCompositedChild
    #74     PaintingContext.repaintCompositedChild
    #75     PaintingContext._compositeChild
    #76     PaintingContext.paintChild
    #77     RenderProxyBoxMixin.paint
    #78     RenderObject._paintWithContext
    #79     PaintingContext.paintChild
    #80     RenderProxyBoxMixin.paint
    #81     RenderObject._paintWithContext
    #82     PaintingContext.paintChild
    #83     RenderProxyBoxMixin.paint
    #84     RenderOffstage.paint
    #85     RenderObject._paintWithContext
    #86     PaintingContext.paintChild
    #87     RenderProxyBoxMixin.paint
    #88     RenderObject._paintWithContext
    #89     PaintingContext.paintChild
    #90     _RenderTheatre.paintStack
    #91     _RenderTheatre.paint
    #92     RenderObject._paintWithContext
    #93     PaintingContext.paintChild
    #94     RenderProxyBoxMixin.paint
    #95     RenderObject._paintWithContext
    #96     PaintingContext.paintChild
    #97     RenderProxyBoxMixin.paint
    #98     RenderObject._paintWithContext
    #99     PaintingContext.paintChild
    #100    RenderProxyBoxMixin.paint
    #101    RenderObject._paintWithContext
    #102    PaintingContext.paintChild
    #103    RenderProxyBoxMixin.paint
    #104    RenderObject._paintWithContext
    #105    PaintingContext.paintChild
    #106    RenderProxyBoxMixin.paint
    #107    RenderObject._paintWithContext
    #108    PaintingContext.paintChild
    #109    RenderProxyBoxMixin.paint
    #110    RenderObject._paintWithContext
    #111    PaintingContext.paintChild
    #112    RenderProxyBoxMixin.paint
    #113    RenderObject._paintWithContext
    #114    PaintingContext.paintChild
    #115    RenderView.paint
    #116    RenderObject._paintWithContext
    #117    PaintingContext._repaintCompositedChild
    #118    PaintingContext.repaintCompositedChild
    #119    PipelineOwner.flushPaint
    #120    RendererBinding.drawFrame
    #121    WidgetsBinding.drawFrame
    #122    RendererBinding._handlePersistentFrameCallback
    #123    SchedulerBinding._invokeFrameCallback
    #124    SchedulerBinding.handleDrawFrame
    #125    SchedulerBinding.scheduleWarmUpFrame.<anonymous closure>
    (elided 13 frames from class _AssertionError, class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)
    The following RenderObject was being processed when the exception was fired: RenderIndexedStack#509ba relayoutBoundary=up1
    RenderObject: RenderIndexedStack#509ba relayoutBoundary=up1
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null (can use size)
        constraints: BoxConstraints(0.0<=w<=Infinity, 0.0<=h<=24.0)
        size: Size(78.0, 24.0)
        alignment: AlignmentDirectional.centerStart
        textDirection: ltr
        fit: loose
        index: 1
        child 1: RenderConstrainedBox#d0ec4 relayoutBoundary=up2 NEEDS-PAINT
            parentData: not positioned; offset=Offset(0.0, 0.0) (can use size)
            constraints: BoxConstraints(0.0<=w<=Infinity, 0.0<=h<=24.0)
            size: Size(78.0, 24.0)
            additionalConstraints: BoxConstraints(0.0<=w<=Infinity, 48.0<=h<=Infinity)
            child: RenderPositionedBox#a27fa relayoutBoundary=up3 NEEDS-PAINT
                parentData: <none> (can use size)
                constraints: BoxConstraints(0.0<=w<=Infinity, h=24.0)
                size: Size(78.0, 24.0)
                alignment: AlignmentDirectional.centerStart
                textDirection: ltr
                widthFactor: expand
                heightFactor: expand
                child: RenderParagraph#06a57 relayoutBoundary=up4 NEEDS-PAINT
                    parentData: offset=Offset(0.0, 0.0) (can use size)
                    constraints: BoxConstraints(0.0<=w<=Infinity, 0.0<=h<=24.0)
                    size: Size(78.0, 24.0)
                    textAlign: start
                    textDirection: ltr
                    softWrap: wrapping at box width
                    overflow: clip
                    locale: en_US
                    maxLines: unlimited
                    text: TextSpan
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<Color>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<Color>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<Color>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<Color>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<Color>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<Color>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<Color>
    ════════════════════════════════════════════════════════════════════════════════
    

    @danagbemava-nc in this minimual reproduction there's an error that's missing when hovering over the dropdown.

    Here it is with the onHover error (using Win11):

    Non minimal reproduction error
    Restarted application in 1,196ms.
    [sentry] [debug] release: [email protected]
    Reloaded 1 of 1908 libraries in 365ms.
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    The following assertion was thrown during paint():
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    
    Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
    In either case, please report this assertion by filing a bug on GitHub:
      https://github.com/flutter/flutter/issues/new?template=2_bug.md
    
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    When the exception was thrown, this was the stack
    #2      RenderIndexedStack._childAtIndex
    #3      RenderIndexedStack.paintStack
    #4      RenderStack.paint
    #5      RenderObject._paintWithContext
    #6      PaintingContext.paintChild
    #7      RenderBoxContainerDefaultsMixin.defaultPaint
    #8      RenderFlex.paint
    #9      RenderObject._paintWithContext
    #10     PaintingContext.paintChild
    #11     RenderShiftedBox.paint
    #12     RenderObject._paintWithContext
    #13     PaintingContext.paintChild
    #14     RenderProxyBoxMixin.paint
    #15     RenderObject._paintWithContext
    #16     PaintingContext.paintChild
    #17     RenderProxyBoxMixin.paint
    #18     RenderObject._paintWithContext
    #19     PaintingContext.paintChild
    #20     RenderProxyBoxMixin.paint
    #21     RenderObject._paintWithContext
    #22     PaintingContext.paintChild
    #23     RenderProxyBoxMixin.paint
    #24     RenderObject._paintWithContext
    #25     PaintingContext.paintChild
    #26     RenderProxyBoxMixin.paint
    #27     RenderObject._paintWithContext
    #28     PaintingContext.paintChild
    #29     RenderProxyBoxMixin.paint
    #30     RenderObject._paintWithContext
    #31     PaintingContext.paintChild
    #32     _RenderDecoration.paint.doPaint
    #33     _RenderDecoration.paint
    #34     RenderObject._paintWithContext
    #35     PaintingContext.paintChild
    #36     RenderProxyBoxMixin.paint
    #37     RenderObject._paintWithContext
    #38     PaintingContext.paintChild
    #39     RenderBoxContainerDefaultsMixin.defaultPaint
    #40     RenderFlex.paint
    #41     RenderObject._paintWithContext
    #42     PaintingContext.paintChild
    #43     RenderProxyBoxMixin.paint
    #44     RenderObject._paintWithContext
    #45     PaintingContext.paintChild
    #46     RenderBoxContainerDefaultsMixin.defaultPaint
    #47     RenderFlex.paint
    #48     RenderObject._paintWithContext
    #49     PaintingContext.paintChild
    #50     RenderProxyBoxMixin.paint
    #51     RenderObject._paintWithContext
    #52     PaintingContext.paintChild
    #53     RenderProxyBoxMixin.paint
    #54     RenderObject._paintWithContext
    #55     PaintingContext.paintChild
    #56     RenderProxyBoxMixin.paint
    #57     RenderObject._paintWithContext
    #58     PaintingContext.paintChild
    #59     RenderProxyBoxMixin.paint
    #60     RenderObject._paintWithContext
    #61     PaintingContext.paintChild
    #62     RenderProxyBoxMixin.paint
    #63     _RenderInkFeatures.paint
    #64     RenderObject._paintWithContext
    #65     PaintingContext.paintChild
    #66     RenderProxyBoxMixin.paint
    #67     PaintingContext.pushLayer
    #68     RenderPhysicalModel.paint
    #69     RenderObject._paintWithContext
    #70     PaintingContext.paintChild
    #71     RenderBoxContainerDefaultsMixin.defaultPaint
    #72     RenderFlex.paint
    #73     RenderObject._paintWithContext
    #74     PaintingContext.paintChild
    #75     RenderShiftedBox.paint
    #76     RenderObject._paintWithContext
    #77     PaintingContext.paintChild
    #78     RenderProxyBoxMixin.paint
    #79     RenderDecoratedBox.paint
    #80     RenderObject._paintWithContext
    #81     PaintingContext.paintChild
    #82     RenderProxyBoxMixin.paint
    #83     RenderObject._paintWithContext
    #84     PaintingContext.paintChild
    #85     RenderProxyBoxMixin.paint
    #86     RenderObject._paintWithContext
    #87     PaintingContext._repaintCompositedChild
    #88     PaintingContext.repaintCompositedChild
    #89     PipelineOwner.flushPaint
    #90     RendererBinding.drawFrame
    #91     WidgetsBinding.drawFrame
    #92     RendererBinding._handlePersistentFrameCallback
    #93     SchedulerBinding._invokeFrameCallback
    #94     SchedulerBinding.handleDrawFrame
    #95     SchedulerBinding._handleDrawFrame
    #99     _invoke (dart:ui/hooks.dart:166:10)
    #100    PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270:5)
    #101    _drawFrame (dart:ui/hooks.dart:129:31)
    (elided 5 frames from class _AssertionError and dart:async)
    The following RenderObject was being processed when the exception was fired: RenderIndexedStack#6fabd relayoutBoundary=up1
    RenderObject: RenderIndexedStack#6fabd relayoutBoundary=up1
        parentData: offset=Offset(0.0, 1.0); flex=null; fit=null (can use size)
        constraints: BoxConstraints(0.0<=w<=Infinity, 0.0<=h<=24.0)
        size: Size(126.0, 22.0)
        alignment: AlignmentDirectional.centerStart
        textDirection: ltr
        fit: loose
        index: 2
        child 1: RenderParagraph#3d20f relayoutBoundary=up2 NEEDS-PAINT
            parentData: not positioned; offset=Offset(0.0, 0.0) (can use size)
            constraints: BoxConstraints(0.0<=w<=Infinity, 0.0<=h<=24.0)
            size: Size(126.0, 22.0)
            textAlign: start
            textDirection: ltr
            softWrap: wrapping at box width
            overflow: clip
            locale: en_US
            maxLines: unlimited
            text: TextSpan
                debugLabel: ((((blackRedmond bodyText1).apply).merge(unknown)).copyWith).copyWith
                inherit: true
                color: Color(0xff000000)
                family: Hind
                size: 14.0
                decoration: TextDecoration.none
                WidgetSpan#6c924
                    alignment: aboveBaseline
                    baseline: alphabetic
                TextSpan
                    "By "
                TextSpan
                    inherit: true
                    weight: 700
                    "Popularity"
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
    ════════ Exception caught by rendering library ═════════════════════════════════
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true.
    The relevant error-causing widget was
    DropdownButtonFormField<SeriesSorting_Sorting>
    ════════════════════════════════════════════════════════════════════════════════
    [sentry] "[debug] Capture from onError 'package:flutter/src/rendering/stack.dart': Failed assertion: line 716 pos 12: 'i == index': is not true."
    
  7. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 1, 2021
  8. danagbemava-nc commented on Nov 2, 2021

    @danagbemava-nc
    Member

    Hi @agondev, how do you propose the error/assertion message be improved?

  9. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 2, 2021
  10. noga-dev commented on Nov 2, 2021

    @noga-dev
    Author

    Hi @agondev, how do you propose the error/assertion message be improved?

    [✔️]
    "SelectedItemBuilder's index out of range (items.length != builder's children.length)"

    [✔️]
    "Index out of range (are you sure items and selectedItemBuilder return the same list length"

    [❌]

    "The following assertion was thrown during paint():
    'package:flutter/src/rendering/stack.dart': Failed assertion: line 717 pos 12: 'child != null': is not true.
    
    Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
    In either case, please report this assertion by filing a bug on GitHub:"
    

    Assertion should have been caught within the dropdown widget class.

  11. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Nov 2, 2021
  12. danagbemava-nc commented on Nov 2, 2021

    @danagbemava-nc
    Member

    Thanks for the suggestions

  13. added
    a: error messageError messages from the Flutter framework
    and removed
    in triagePresently being triaged by the triage team
    on Nov 2, 2021
  14. 11 remaining items

  15. self-assigned this
    on Mar 16, 2026
  16. flutter-triage-bot commented on Mar 16, 2026

    @flutter-triage-bot

    This issue is missing a priority label. Please set a priority label when adding the triaged-design label.

  17. added a commit that references this issue on Mar 18, 2026
    cee996b
  18. added a commit that references this issue on Mar 26, 2026
    0add01f
  19. github-actions commented on Apr 1, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  20. locked as resolved and limited conversation to collaborators on Apr 1, 2026
  21. added a commit that references this issue on Apr 14, 2026
    e843856
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

a: error messageError messages from the Flutter frameworkframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesteam-designOwned by Design Languages team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions