Reloaded 1 of 1240 libraries in 1,764ms (compile: 39 ms, reload: 583 ms, reassemble: 969 ms).
Restarted application in 2,200ms.
Reloaded 1 of 1240 libraries in 1,691ms (compile: 19 ms, reload: 538 ms, reassemble: 982 ms).

════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during performLayout():
RenderFlex children have non-zero flex but incoming height constraints are unbounded.
When a column is in a parent that does not provide a finite height constraint, for example if it is in a vertical scrollable, it will try to shrink-wrap its children along the vertical axis. Setting a flex on a child (e.g. using Expanded) indicates that the child is to expand to fill the remaining space in the vertical direction.
These two directives are mutually exclusive. If a parent is to shrink-wrap its child, the child cannot simultaneously expand to fit its parent.
Consider setting mainAxisSize to MainAxisSize.min and using FlexFit.loose fits for the flexible children (using Flexible rather than Expanded). This will allow the flexible children to size themselves to less than the infinite remaining space they would otherwise be forced to take, and then will cause the RenderFlex to shrink-wrap the children rather than expanding to fit the maximum constraints provided by the parent.
If this message did not help you determine the problem, consider using debugDumpRenderTree():
  https://flutter.dev/to/debug-render-layer
  https://api.flutter.dev/flutter/rendering/debugDumpRenderTree.html
The affected RenderFlex is: RenderFlex#67784 relayoutBoundary=up10 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
    parentData: <none> (can use size)
    constraints: BoxConstraints(0.0<=w<=360.0, 0.0<=h<=Infinity)
    size: MISSING
    direction: vertical
    mainAxisAlignment: start
    mainAxisSize: max
    crossAxisAlignment: center
    verticalDirection: down
    child 1: RenderClipRRect#1b5a1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        child: RenderConstrainedBox#e6d8a NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: <none>
            constraints: MISSING
            size: MISSING
            additionalConstraints: BoxConstraints(w=162.0, h=268.8)
            child: RenderSemanticsAnnotations#dccfa NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                parentData: <none>
                constraints: MISSING
                size: MISSING
                child: RenderImage#cb6d4 NEEDS-LAYOUT NEEDS-PAINT
                    parentData: <none>
                    constraints: MISSING
                    size: MISSING
                    image: [300×400]
                    fit: cover
                    alignment: Alignment.center
                    invertColors: false
                    filterQuality: medium
    child 2: RenderParagraph#9f30a NEEDS-LAYOUT NEEDS-PAINT
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        textAlign: start
        textDirection: ltr
        softWrap: wrapping at box width
        overflow: clip
        locale: en_US
        maxLines: unlimited
        text: TextSpan
            debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
            inherit: false
            color: Color(0xff000000)
            family: Roboto
            size: 20.0
            weight: 400
            letterSpacing: 0.1
            baseline: alphabetic
            height: 1.4x
            leadingDistribution: even
            decoration: Color(0xff1d1b20) TextDecoration.none
            "First Immortal of the Sword"
    child 3: RenderParagraph#94c3b NEEDS-LAYOUT NEEDS-PAINT
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        textAlign: start
        textDirection: ltr
        softWrap: wrapping at box width
        overflow: clip
        locale: en_US
        maxLines: unlimited
        text: TextSpan
            debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
            inherit: false
            color: Color(0xdd3b3a3a)
            family: Roboto
            size: 14.0
            weight: 400
            letterSpacing: 1.3
            baseline: alphabetic
            height: 1.4x
            leadingDistribution: even
            decoration: Color(0xff1d1b20) TextDecoration.none
            "Xiao Jinyu"
    child 4: RenderConstrainedBox#99b9c NEEDS-LAYOUT NEEDS-PAINT
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        additionalConstraints: BoxConstraints(0.0<=w<=Infinity, h=10.0)
    child 5: RenderFlex#d5034 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        direction: horizontal
        mainAxisAlignment: start
        mainAxisSize: max
        crossAxisAlignment: center
        textDirection: ltr
        verticalDirection: down
        child 1: RenderPadding#a5829 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
            constraints: MISSING
            size: MISSING
            padding: EdgeInsets.all(8.0)
            textDirection: ltr
            child: RenderParagraph#02a8c NEEDS-LAYOUT NEEDS-PAINT
                parentData: offset=Offset(0.0, 0.0)
                constraints: MISSING
                size: MISSING
                textAlign: start
                textDirection: ltr
                softWrap: wrapping at box width
                overflow: clip
                locale: en_US
                maxLines: unlimited
                text: TextSpan
                    debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
                    inherit: false
                    color: Color(0xff000000)
                    family: Roboto
                    size: 24.0
                    weight: 400
                    letterSpacing: 0.0
                    baseline: alphabetic
                    height: 1.4x
                    leadingDistribution: even
                    decoration: Color(0xff1d1b20) TextDecoration.none
                    "Description"
    child 6: RenderPadding#30b6d NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        padding: EdgeInsets(20.0, 0.0, 0.0, 0.0)
        textDirection: ltr
        child: RenderParagraph#6f5c1 NEEDS-LAYOUT NEEDS-PAINT
            parentData: offset=Offset(0.0, 0.0)
            constraints: MISSING
            size: MISSING
            textAlign: start
            textDirection: ltr
            softWrap: wrapping at box width
            overflow: clip
            locale: en_US
            maxLines: unlimited
            text: TextSpan
                debugLabel: (englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)
                inherit: false
                color: Color(0xff1d1b20)
                family: Roboto
                size: 14.0
                weight: 400
                letterSpacing: 0.3
                baseline: alphabetic
                height: 1.4x
                leadingDistribution: even
                decoration: Color(0xff1d1b20) TextDecoration.none
                "Su Yi, the glorious ‘Master of Ten Thousand Daos’ reigns supreme over the Nine Provinces of the Wilds. Whatever he desires—be it wealth, power, or women—is at his fingertips. Despite this, when he realizes he’s reached his limit, he chooses to reincarnate in pursuit of greater heights.In the last moments before his death, he watches as everyone he trusts turns on him for the sake of treasure, and his disillusioned spirit vows revenge.Now, five hundred years later, Su Yi is back, but as a crippled live-in son-in-law and local laughingstock; his current situation is a far cry from his former glory. Thus begins a journey back to the top, starting from the very bottom…"
    child 7: RenderClipRect#6e7b2 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=1; fit=FlexFit.tight
        constraints: MISSING
        size: MISSING
        child: RenderTransform#c2821 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: <none>
            constraints: MISSING
            size: MISSING
            transform matrix: [0] 1.0,0.0,0.0,0.0
[1] 0.0,1.0,0.0,0.0
[2] 0.0,0.0,1.0,0.0
[3] 0.0,0.0,0.0,1.0
            origin: null
            alignment: Alignment.centerRight
            textDirection: ltr
            transformHitTests: true
            child: _RenderScrollSemantics#54628 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                parentData: <none>
                constraints: MISSING
                semantic boundary
                size: MISSING
                child: RenderPointerListener#08832 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                    parentData: <none>
                    constraints: MISSING
                    size: MISSING
                    behavior: deferToChild
                    listeners: signal
The creator information is set to: Column ← _SingleChildViewport ← IgnorePointer-[GlobalKey#8d8b8] ← Semantics ← Listener ← _GestureSemantics ← RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#def4c] ← Listener ← _ScrollableScope ← _ScrollSemantics-[GlobalKey#67a85] ← NotificationListener<ScrollMetricsNotification> ← Transform ← ⋯
The nearest ancestor providing an unbounded width constraint is: _RenderSingleChildViewport#6c26f relayoutBoundary=up9 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
    needs compositing
    parentData: <none> (can use size)
    constraints: BoxConstraints(0.0<=w<=360.0, 0.0<=h<=560.0)
    size: MISSING
    offset: Offset(0.0, -0.0)
    child: RenderFlex#67784 relayoutBoundary=up10 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: <none> (can use size)
        constraints: BoxConstraints(0.0<=w<=360.0, 0.0<=h<=Infinity)
        size: MISSING
        direction: vertical
        mainAxisAlignment: start
        mainAxisSize: max
        crossAxisAlignment: center
        verticalDirection: down
        child 1: RenderClipRRect#1b5a1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
            constraints: MISSING
            size: MISSING
            child: RenderConstrainedBox#e6d8a NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                parentData: <none>
                constraints: MISSING
                size: MISSING
                additionalConstraints: BoxConstraints(w=162.0, h=268.8)
                child: RenderSemanticsAnnotations#dccfa NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                    parentData: <none>
                    constraints: MISSING
                    size: MISSING
        child 2: RenderParagraph#9f30a NEEDS-LAYOUT NEEDS-PAINT
            parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
            constraints: MISSING
            size: MISSING
            textAlign: start
            textDirection: ltr
            softWrap: wrapping at box width
            overflow: clip
            locale: en_US
            maxLines: unlimited
            text: TextSpan
                debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
                inherit: false
                color: Color(0xff000000)
                family: Roboto
                size: 20.0
                weight: 400
                letterSpacing: 0.1
                baseline: alphabetic
                height: 1.4x
                leadingDistribution: even
                decoration: Color(0xff1d1b20) TextDecoration.none
                "First Immortal of the Sword"
        child 3: RenderParagraph#94c3b NEEDS-LAYOUT NEEDS-PAINT
            parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
            constraints: MISSING
            size: MISSING
            textAlign: start
            textDirection: ltr
            softWrap: wrapping at box width
            overflow: clip
            locale: en_US
            maxLines: unlimited
            text: TextSpan
                debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
                inherit: false
                color: Color(0xdd3b3a3a)
                family: Roboto
                size: 14.0
                weight: 400
                letterSpacing: 1.3
                baseline: alphabetic
                height: 1.4x
                leadingDistribution: even
                decoration: Color(0xff1d1b20) TextDecoration.none
                "Xiao Jinyu"
        child 4: RenderConstrainedBox#99b9c NEEDS-LAYOUT NEEDS-PAINT
            parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
            constraints: MISSING
            size: MISSING
            additionalConstraints: BoxConstraints(0.0<=w<=Infinity, h=10.0)
        child 5: RenderFlex#d5034 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
            constraints: MISSING
            size: MISSING
            direction: horizontal
            mainAxisAlignment: start
            mainAxisSize: max
            crossAxisAlignment: center
            textDirection: ltr
            verticalDirection: down
            child 1: RenderPadding#a5829 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
                constraints: MISSING
                size: MISSING
                padding: EdgeInsets.all(8.0)
                textDirection: ltr
                child: RenderParagraph#02a8c NEEDS-LAYOUT NEEDS-PAINT
                    parentData: offset=Offset(0.0, 0.0)
                    constraints: MISSING
                    size: MISSING
                    textAlign: start
                    textDirection: ltr
                    softWrap: wrapping at box width
                    overflow: clip
                    locale: en_US
                    maxLines: unlimited
        child 6: RenderPadding#30b6d NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
            constraints: MISSING
            size: MISSING
            padding: EdgeInsets(20.0, 0.0, 0.0, 0.0)
            textDirection: ltr
            child: RenderParagraph#6f5c1 NEEDS-LAYOUT NEEDS-PAINT
                parentData: offset=Offset(0.0, 0.0)
                constraints: MISSING
                size: MISSING
                textAlign: start
                textDirection: ltr
                softWrap: wrapping at box width
                overflow: clip
                locale: en_US
                maxLines: unlimited
                text: TextSpan
                    debugLabel: (englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)
                    inherit: false
                    color: Color(0xff1d1b20)
                    family: Roboto
                    size: 14.0
                    weight: 400
                    letterSpacing: 0.3
                    baseline: alphabetic
                    height: 1.4x
                    leadingDistribution: even
                    decoration: Color(0xff1d1b20) TextDecoration.none
                    "Su Yi, the glorious ‘Master of Ten Thousand Daos’ reigns supreme over the Nine Provinces of the Wilds. Whatever he desires—be it wealth, power, or women—is at his fingertips. Despite this, when he realizes he’s reached his limit, he chooses to reincarnate in pursuit of greater heights.In the last moments before his death, he watches as everyone he trusts turns on him for the sake of treasure, and his disillusioned spirit vows revenge.Now, five hundred years later, Su Yi is back, but as a crippled live-in son-in-law and local laughingstock; his current situation is a far cry from his former glory. Thus begins a journey back to the top, starting from the very bottom…"
        child 7: RenderClipRect#6e7b2 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: offset=Offset(0.0, 0.0); flex=1; fit=FlexFit.tight
            constraints: MISSING
            size: MISSING
            child: RenderTransform#c2821 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                parentData: <none>
                constraints: MISSING
                size: MISSING
                transform matrix: [0] 1.0,0.0,0.0,0.0
[1] 0.0,1.0,0.0,0.0
[2] 0.0,0.0,1.0,0.0
[3] 0.0,0.0,0.0,1.0
                origin: null
                alignment: Alignment.centerRight
                textDirection: ltr
                transformHitTests: true
                child: _RenderScrollSemantics#54628 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                    parentData: <none>
                    constraints: MISSING
                    semantic boundary
                    size: MISSING
See also: https://flutter.dev/unbounded-constraints
If none of the above helps enough to fix this problem, please don't hesitate to file a bug:
  https://github.com/flutter/flutter/issues/new?template=2_bug.yml

The relevant error-causing widget was:
    Column Column:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:38:22

When the exception was thrown, this was the stack:
#0      RenderFlex.performLayout.<anonymous closure> (package:flutter/src/rendering/flex.dart:1046:9)
#1      RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:1049:6)
#2      RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#3      _RenderSingleChildViewport.performLayout (package:flutter/src/widgets/single_child_scroll_view.dart:483:14)
#4      RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#5      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#6      RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#7      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#8      RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#9      RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#10     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#11     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#12     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#13     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#14     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#15     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#16     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#17     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#18     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#19     RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111:21)
#20     _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1448:11)
#21     RenderObject.layout (package:flutter/src/rendering/object.dart:2608:7)
#22     MultiChildLayoutDelegate.layoutChild (package:flutter/src/rendering/custom_layout.dart:173:12)
#23     _ScaffoldLayout.performLayout (package:flutter/src/material/scaffold.dart:1092:7)
#24     MultiChildLayoutDelegate._callPerformLayout (package:flutter/src/rendering/custom_layout.dart:237:7)
#25     RenderCustomMultiChildLayoutBox.performLayout (package:flutter/src/rendering/custom_layout.dart:404:14)
#26     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2446:7)
#27     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1052:18)
#28     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1065:15)
#29     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:602:23)
#30     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:1164:13)
#31     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:468:5)
#32     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1397:15)
#33     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1318:9)
#34     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1176:5)
#35     _invoke (dart:ui/hooks.dart:312:13)
#36     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419:5)
#37     _drawFrame (dart:ui/hooks.dart:283:31)

The following RenderObject was being processed when the exception was fired: RenderFlex#67784 relayoutBoundary=up10 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
    parentData: <none> (can use size)
    constraints: BoxConstraints(0.0<=w<=360.0, 0.0<=h<=Infinity)
    size: MISSING
    direction: vertical
    mainAxisAlignment: start
    mainAxisSize: max
    crossAxisAlignment: center
    verticalDirection: down
    child 1: RenderClipRRect#1b5a1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        child: RenderConstrainedBox#e6d8a NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: <none>
            constraints: MISSING
            size: MISSING
            additionalConstraints: BoxConstraints(w=162.0, h=268.8)
            child: RenderSemanticsAnnotations#dccfa NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                parentData: <none>
                constraints: MISSING
                size: MISSING
                child: RenderImage#cb6d4 NEEDS-LAYOUT NEEDS-PAINT
                    parentData: <none>
                    constraints: MISSING
                    size: MISSING
                    image: [300×400]
                    fit: cover
                    alignment: Alignment.center
                    invertColors: false
                    filterQuality: medium
    child 2: RenderParagraph#9f30a NEEDS-LAYOUT NEEDS-PAINT
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        textAlign: start
        textDirection: ltr
        softWrap: wrapping at box width
        overflow: clip
        locale: en_US
        maxLines: unlimited
        text: TextSpan
            debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
            inherit: false
            color: Color(0xff000000)
            family: Roboto
            size: 20.0
            weight: 400
            letterSpacing: 0.1
            baseline: alphabetic
            height: 1.4x
            leadingDistribution: even
            decoration: Color(0xff1d1b20) TextDecoration.none
            "First Immortal of the Sword"
    child 3: RenderParagraph#94c3b NEEDS-LAYOUT NEEDS-PAINT
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        textAlign: start
        textDirection: ltr
        softWrap: wrapping at box width
        overflow: clip
        locale: en_US
        maxLines: unlimited
        text: TextSpan
            debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
            inherit: false
            color: Color(0xdd3b3a3a)
            family: Roboto
            size: 14.0
            weight: 400
            letterSpacing: 1.3
            baseline: alphabetic
            height: 1.4x
            leadingDistribution: even
            decoration: Color(0xff1d1b20) TextDecoration.none
            "Xiao Jinyu"
    child 4: RenderConstrainedBox#99b9c NEEDS-LAYOUT NEEDS-PAINT
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        additionalConstraints: BoxConstraints(0.0<=w<=Infinity, h=10.0)
    child 5: RenderFlex#d5034 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        direction: horizontal
        mainAxisAlignment: start
        mainAxisSize: max
        crossAxisAlignment: center
        textDirection: ltr
        verticalDirection: down
        child 1: RenderPadding#a5829 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
            constraints: MISSING
            size: MISSING
            padding: EdgeInsets.all(8.0)
            textDirection: ltr
            child: RenderParagraph#02a8c NEEDS-LAYOUT NEEDS-PAINT
                parentData: offset=Offset(0.0, 0.0)
                constraints: MISSING
                size: MISSING
                textAlign: start
                textDirection: ltr
                softWrap: wrapping at box width
                overflow: clip
                locale: en_US
                maxLines: unlimited
                text: TextSpan
                    debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
                    inherit: false
                    color: Color(0xff000000)
                    family: Roboto
                    size: 24.0
                    weight: 400
                    letterSpacing: 0.0
                    baseline: alphabetic
                    height: 1.4x
                    leadingDistribution: even
                    decoration: Color(0xff1d1b20) TextDecoration.none
                    "Description"
    child 6: RenderPadding#30b6d NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        padding: EdgeInsets(20.0, 0.0, 0.0, 0.0)
        textDirection: ltr
        child: RenderParagraph#6f5c1 NEEDS-LAYOUT NEEDS-PAINT
            parentData: offset=Offset(0.0, 0.0)
            constraints: MISSING
            size: MISSING
            textAlign: start
            textDirection: ltr
            softWrap: wrapping at box width
            overflow: clip
            locale: en_US
            maxLines: unlimited
            text: TextSpan
                debugLabel: (englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)
                inherit: false
                color: Color(0xff1d1b20)
                family: Roboto
                size: 14.0
                weight: 400
                letterSpacing: 0.3
                baseline: alphabetic
                height: 1.4x
                leadingDistribution: even
                decoration: Color(0xff1d1b20) TextDecoration.none
                "Su Yi, the glorious ‘Master of Ten Thousand Daos’ reigns supreme over the Nine Provinces of the Wilds. Whatever he desires—be it wealth, power, or women—is at his fingertips. Despite this, when he realizes he’s reached his limit, he chooses to reincarnate in pursuit of greater heights.In the last moments before his death, he watches as everyone he trusts turns on him for the sake of treasure, and his disillusioned spirit vows revenge.Now, five hundred years later, Su Yi is back, but as a crippled live-in son-in-law and local laughingstock; his current situation is a far cry from his former glory. Thus begins a journey back to the top, starting from the very bottom…"
    child 7: RenderClipRect#6e7b2 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=1; fit=FlexFit.tight
        constraints: MISSING
        size: MISSING
        child: RenderTransform#c2821 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: <none>
            constraints: MISSING
            size: MISSING
            transform matrix: [0] 1.0,0.0,0.0,0.0
[1] 0.0,1.0,0.0,0.0
[2] 0.0,0.0,1.0,0.0
[3] 0.0,0.0,0.0,1.0
            origin: null
            alignment: Alignment.centerRight
            textDirection: ltr
            transformHitTests: true
            child: _RenderScrollSemantics#54628 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                parentData: <none>
                constraints: MISSING
                semantic boundary
                size: MISSING
                child: RenderPointerListener#08832 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                    parentData: <none>
                    constraints: MISSING
                    size: MISSING
                    behavior: deferToChild
                    listeners: signal
RenderObject: RenderFlex#67784 relayoutBoundary=up10 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
    parentData: <none> (can use size)
    constraints: BoxConstraints(0.0<=w<=360.0, 0.0<=h<=Infinity)
    size: MISSING
    direction: vertical
    mainAxisAlignment: start
    mainAxisSize: max
    crossAxisAlignment: center
    verticalDirection: down
    child 1: RenderClipRRect#1b5a1 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        child: RenderConstrainedBox#e6d8a NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: <none>
            constraints: MISSING
            size: MISSING
            additionalConstraints: BoxConstraints(w=162.0, h=268.8)
            child: RenderSemanticsAnnotations#dccfa NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                parentData: <none>
                constraints: MISSING
                size: MISSING
                child: RenderImage#cb6d4 NEEDS-LAYOUT NEEDS-PAINT
                    parentData: <none>
                    constraints: MISSING
                    size: MISSING
                    image: [300×400]
                    fit: cover
                    alignment: Alignment.center
                    invertColors: false
                    filterQuality: medium
    child 2: RenderParagraph#9f30a NEEDS-LAYOUT NEEDS-PAINT
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        textAlign: start
        textDirection: ltr
        softWrap: wrapping at box width
        overflow: clip
        locale: en_US
        maxLines: unlimited
        text: TextSpan
            debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
            inherit: false
            color: Color(0xff000000)
            family: Roboto
            size: 20.0
            weight: 400
            letterSpacing: 0.1
            baseline: alphabetic
            height: 1.4x
            leadingDistribution: even
            decoration: Color(0xff1d1b20) TextDecoration.none
            "First Immortal of the Sword"
    child 3: RenderParagraph#94c3b NEEDS-LAYOUT NEEDS-PAINT
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        textAlign: start
        textDirection: ltr
        softWrap: wrapping at box width
        overflow: clip
        locale: en_US
        maxLines: unlimited
        text: TextSpan
            debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
            inherit: false
            color: Color(0xdd3b3a3a)
            family: Roboto
            size: 14.0
            weight: 400
            letterSpacing: 1.3
            baseline: alphabetic
            height: 1.4x
            leadingDistribution: even
            decoration: Color(0xff1d1b20) TextDecoration.none
            "Xiao Jinyu"
    child 4: RenderConstrainedBox#99b9c NEEDS-LAYOUT NEEDS-PAINT
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        additionalConstraints: BoxConstraints(0.0<=w<=Infinity, h=10.0)
    child 5: RenderFlex#d5034 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        direction: horizontal
        mainAxisAlignment: start
        mainAxisSize: max
        crossAxisAlignment: center
        textDirection: ltr
        verticalDirection: down
        child 1: RenderPadding#a5829 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
            constraints: MISSING
            size: MISSING
            padding: EdgeInsets.all(8.0)
            textDirection: ltr
            child: RenderParagraph#02a8c NEEDS-LAYOUT NEEDS-PAINT
                parentData: offset=Offset(0.0, 0.0)
                constraints: MISSING
                size: MISSING
                textAlign: start
                textDirection: ltr
                softWrap: wrapping at box width
                overflow: clip
                locale: en_US
                maxLines: unlimited
                text: TextSpan
                    debugLabel: ((englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)).merge(unknown)
                    inherit: false
                    color: Color(0xff000000)
                    family: Roboto
                    size: 24.0
                    weight: 400
                    letterSpacing: 0.0
                    baseline: alphabetic
                    height: 1.4x
                    leadingDistribution: even
                    decoration: Color(0xff1d1b20) TextDecoration.none
                    "Description"
    child 6: RenderPadding#30b6d NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=null; fit=null
        constraints: MISSING
        size: MISSING
        padding: EdgeInsets(20.0, 0.0, 0.0, 0.0)
        textDirection: ltr
        child: RenderParagraph#6f5c1 NEEDS-LAYOUT NEEDS-PAINT
            parentData: offset=Offset(0.0, 0.0)
            constraints: MISSING
            size: MISSING
            textAlign: start
            textDirection: ltr
            softWrap: wrapping at box width
            overflow: clip
            locale: en_US
            maxLines: unlimited
            text: TextSpan
                debugLabel: (englishLike bodyMedium 2021).merge((blackMountainView bodyMedium).apply)
                inherit: false
                color: Color(0xff1d1b20)
                family: Roboto
                size: 14.0
                weight: 400
                letterSpacing: 0.3
                baseline: alphabetic
                height: 1.4x
                leadingDistribution: even
                decoration: Color(0xff1d1b20) TextDecoration.none
                "Su Yi, the glorious ‘Master of Ten Thousand Daos’ reigns supreme over the Nine Provinces of the Wilds. Whatever he desires—be it wealth, power, or women—is at his fingertips. Despite this, when he realizes he’s reached his limit, he chooses to reincarnate in pursuit of greater heights.In the last moments before his death, he watches as everyone he trusts turns on him for the sake of treasure, and his disillusioned spirit vows revenge.Now, five hundred years later, Su Yi is back, but as a crippled live-in son-in-law and local laughingstock; his current situation is a far cry from his former glory. Thus begins a journey back to the top, starting from the very bottom…"
    child 7: RenderClipRect#6e7b2 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        parentData: offset=Offset(0.0, 0.0); flex=1; fit=FlexFit.tight
        constraints: MISSING
        size: MISSING
        child: RenderTransform#c2821 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
            parentData: <none>
            constraints: MISSING
            size: MISSING
            transform matrix: [0] 1.0,0.0,0.0,0.0
[1] 0.0,1.0,0.0,0.0
[2] 0.0,0.0,1.0,0.0
[3] 0.0,0.0,0.0,1.0
            origin: null
            alignment: Alignment.centerRight
            textDirection: ltr
            transformHitTests: true
            child: _RenderScrollSemantics#54628 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                parentData: <none>
                constraints: MISSING
                semantic boundary
                size: MISSING
                child: RenderPointerListener#08832 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
                    parentData: <none>
                    constraints: MISSING
                    size: MISSING
                    behavior: deferToChild
                    listeners: signal
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: RenderFlex#67784 relayoutBoundary=up10 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    SingleChildScrollView SingleChildScrollView:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:37:20
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: _RenderSingleChildViewport#6c26f relayoutBoundary=up9 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    SingleChildScrollView SingleChildScrollView:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:37:20
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: RenderIgnorePointer#114d0 relayoutBoundary=up8 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    SingleChildScrollView SingleChildScrollView:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:37:20
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: RenderSemanticsAnnotations#10b00 relayoutBoundary=up7 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    SingleChildScrollView SingleChildScrollView:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:37:20
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: RenderPointerListener#cca5a relayoutBoundary=up6 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    SingleChildScrollView SingleChildScrollView:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:37:20
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: RenderSemanticsGestureHandler#805cc relayoutBoundary=up5 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    SingleChildScrollView SingleChildScrollView:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:37:20
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: RenderPointerListener#0127f relayoutBoundary=up4 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    SingleChildScrollView SingleChildScrollView:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:37:20
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: _RenderScrollSemantics#e0747 relayoutBoundary=up3 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    SingleChildScrollView SingleChildScrollView:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:37:20
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: RenderTransform#ce7ec relayoutBoundary=up2 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    SingleChildScrollView SingleChildScrollView:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:37:20
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: RenderClipRect#67572 relayoutBoundary=up1 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    Scaffold Scaffold:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:18:12
════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════
RenderBox was not laid out: RenderTransform#ce7ec relayoutBoundary=up2
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'
The relevant error-causing widget was:
    SingleChildScrollView SingleChildScrollView:file:///C:/Users/DELL/clean%20Articucture/learning/lib/Presentation/Screens/detail_screen.dart:37:20
════════════════════════════════════════════════════════════════════════════════
,import 'package:flutter/material.dart'; 
import 'package:flutter_bloc/flutter_bloc.dart';

import 'package:learning/App/Contanse/app_contanse.dart';
import 'package:learning/Presentation/Controller/Novel/novel_cubit.dart';

import '../../Core/Utils/size.dart';
import '../Resources/Colors/color_manger.dart';
import '../Resources/Fonts/style_manager.dart';
import '../Resources/Strings/stings_manager.dart';
import '../Resources/Values/values_manger.dart';

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: IconButton(
          onPressed: () {
            Navigator.pop(context);
          },
          icon: const Icon(Icons.arrow_back),
        ),
      ),
      body: BlocBuilder<NovelCubit, NovelState>(
        builder: (context, novelState) {
          if (novelState is NovelLoading) {
            // Show loading indicator while fetching the novel details
            return const Center(
              child: CircularProgressIndicator(),
            );
          } else if (novelState is NovelDaitelsLoaded) {
            // Show the details once loaded
            final novel = novelState.novel;
            return SingleChildScrollView(
              child: Column(
                children: [
                  ClipRRect(
                    borderRadius:
                        BorderRadius.circular(BorderRadiusManager.b17),
                    child: SizedBox(
                      height: SizeConfig.size.height * 0.42,
                      width: SizeConfig.size.width * 0.45,
                      child: Image.network(
                        AppContanse.baseImageUrl + novel.image,
                        fit: BoxFit.cover,
                      ),
                    ),
                  ),
                  Text(
                    novel.title,
                    style: getTitleLargeStyle(
                      color: Theme.of(context).brightness == Brightness.light
                          ? ColorManger.blackColor
                          : ColorManger.whiteColor,
                    ),
                  ),
                  Text(
                    novel.author,
                    style: getLabelLargeStyle(
                        color: Theme.of(context).brightness == Brightness.light
                            ? ColorManger.authorNamedColorlight
                            : ColorManger.authorNamedColordark),
                  ),
                  const SizedBox(height: 10),
                  Row(
                    children: [
                      Padding(
                        padding: const EdgeInsets.all(8.0),
                        child: Text(
                          StingsManager.descraption,
                          style: getHeadlineSmallStyle(
                              color: Theme.of(context).brightness ==
                                      Brightness.light
                                  ? ColorManger.blackColor
                                  : ColorManger.whiteColor),
                        ),
                      ),
                    ],
                  ),
                  Padding(
                    padding: const EdgeInsets.only(left: 20),
                    child: Text(novel.description),
                  ),
                  Expanded(
                    child: ListView.builder(
                      itemCount: novel.genre.length,
                      scrollDirection: Axis.horizontal,
                      itemBuilder: (context, index) => Container(
                        height: 10,
                        width: 5,
                        decoration: BoxDecoration(
                          border: const Border(),
                          borderRadius:
                              BorderRadius.circular(BorderRadiusManager.b16),
                        ),
                        child: Text(novel.genre[index]),
                      ),
                    ),
                  )
                ],
              ),
            );
          } else if (novelState is NovelError) {
            // Show an error message if something goes wrong
            return Center(
              child: Text(novelState.errorMessage),
            );
          }
          return const SizedBox.shrink(); // Empty state if no action occurs
        },
      ),
    );
  }
}