iampawan / VelocityX

A minimalist Flutter framework for rapidly building Flutter apps.

Home Page:https://velocityx.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No Detailed Line Number On Exception

EmreSURK opened this issue · comments

When there is an exception in rendering, the error log points to the most parent non-velocity widget. It does not point widgets inside velocity widgets.

Cen be this fixable or it is not fixable by the nature of the extension mechanism?

Please see below:

The relevant error-causing widget was:
Row
Row:BlaBla/text_screen.dart:2:12

  Widget standartCell() {
    return Row( // the exception points here, 2. line.
      children: [
        [
          SizedBox(height: 12, width: 12).box.yellow500.roundedFull.make().objectTopRight(),
          [
            "bla bla ".text.size(14).make().expand(), // the real exception is here.
            "bla bla".text.size(14).color(kColorGray).make(),
          ].row(axisSize: MainAxisSize.min),
        ].column(axisSize: MainAxisSize.min),
      ],
    ).box.roundedSM.withShadow([kShadowCard]).white.make().h(80).px16().py12();
  }

It's an extension issue