diegoveloper / flutter_percent_indicator

Flutter percent indicator library
BSD 2-Clause "Simplified" License
691 stars 206 forks source link

The method '<' was called on null. #45

Closed elirehema closed 4 years ago

elirehema commented 4 years ago

When i create LinearPercentIndicator like this:

Expanded(
         flex: 0,
              child: new LinearPercentIndicator(
                lineHeight: 6.0,
                width: 140.0,
                percent: 0.5,
                animation: true,
                backgroundColor: Colors.lightGreenAccent,
                progressColor: Colors.deepPurple,
              ),
        )

Flutter test excute correctly. But when i pass data from StateFull or Stateless parent widget like

Expanded(
          flex: 0,
              child: new LinearPercentIndicator(
                lineHeight: 6.0,
                width: 140.0,
                percent: percent,
                animation: true,
                backgroundColor: Colors.lightGreenAccent,
                progressColor: Colors.deepPurple,
              ),
        ),

Flutter test give me the following error log

The following NoSuchMethodError was thrown building ArticleDescription(dirty, dependencies:
[MediaQuery], state: _ArticleWidgetState#128d9):
The method '<' was called on null.
Receiver: null
Tried calling: <(0.0)

User-created ancestor of the error-causing widget was:
  Padding
  file:///home/eli/Documents/user/Mobiles/amala/amala_statistics/lib/widgets/widget_bottom_progressbar.dart:65:24

When the exception was thrown, this was the stack:
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      new LinearPercentIndicator (package:percent_indicator/linear_percent_indicator.dart:97:17)
#2      _ArticleWidgetState.build (package:amala_statistics/widgets/widget_article_description.dart:76:26)
#3      StatefulElement.build (package:flutter/src/widgets/framework.dart:4047:27)
#4      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3941:15)
#5      Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#6      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#7      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#8      ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#9      Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#10     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#11     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#12     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#13     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#14     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#15     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#16     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#17     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#18     ParentDataElement.mount (package:flutter/src/widgets/framework.dart:4314:11)
#19     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#20     MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5233:32)
#21     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#22     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#23     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#24     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#25     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#26     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#27     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#28     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#29     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#30     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#31     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#32     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#33     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#34     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#35     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#36     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#37     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#38     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#39     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#40     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#41     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#42     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#43     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#44     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#45     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#46     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#47     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#48     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#49     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#50     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#51     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#52     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#53     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#54     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#55     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#56     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#57     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#58     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#59     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#60     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#61     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#62     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#63     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#64     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#65     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#66     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#67     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#68     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#69     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#70     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#71     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#72     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#73     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#74     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#75     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#76     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#77     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#78     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#79     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#80     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#81     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#82     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#83     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#84     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#85     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#86     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#87     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#88     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#89     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#90     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#91     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#92     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#93     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#94     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#95     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#96     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#97     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#98     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#99     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#100    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#101    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#102    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#103    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#104    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#105    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#106    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#107    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#108    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#109    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#110    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#111    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#112    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#113    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#114    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#115    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#116    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#117    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#118    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#119    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#120    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#121    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#122    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#123    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#124    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#125    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#126    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#127    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#128    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#129    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#130    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#131    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#132    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#133    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#134    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#135    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#136    MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5233:32)
#137    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#138    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#139    _TheatreElement.mount (package:flutter/src/widgets/overlay.dart:593:16)
#140    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#141    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#142    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#143    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#144    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#145    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#146    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#147    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#148    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#149    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#150    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#151    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#152    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#153    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#154    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#155    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#156    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#157    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#158    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#159    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#160    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#161    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#162    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#163    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#164    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#165    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#166    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#167    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#168    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#169    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#170    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#171    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#172    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#173    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#174    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#175    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#176    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#177    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#178    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#179    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#180    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#181    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#182    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#183    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#184    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#185    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#186    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#187    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#188    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#189    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#190    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#191    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#192    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#193    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#194    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#195    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#196    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#197    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#198    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#199    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#200    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#201    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#202    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#203    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#204    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#205    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#206    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#207    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#208    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#209    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#210    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#211    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#212    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#213    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#214    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#215    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#216    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#217    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#218    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#219    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#220    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#221    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#222    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#223    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#224    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#225    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#226    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#227    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#228    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#229    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#230    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#231    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#232    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#233    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#234    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#235    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#236    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#237    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#238    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#239    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#240    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#241    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#242    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#243    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#244    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#245    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#246    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#247    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#248    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#249    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#250    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#251    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#252    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#253    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#254    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#255    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#256    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#257    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#258    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#259    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#260    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#261    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#262    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#263    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#264    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#265    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#266    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#267    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#268    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#269    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#270    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#271    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#272    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
#273    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#274    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#275    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#276    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#277    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#278    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#279    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#280    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#281    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#282    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#283    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#284    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#285    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#286    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#287    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#288    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#289    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#290    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#291    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#292    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#293    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#294    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#295    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#296    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#297    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#298    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#299    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#300    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#301    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#302    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#303    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#304    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#305    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#306    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#307    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#308    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#309    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#310    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
#311    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#312    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#313    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#314    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
#315    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#316    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
#317    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
#318    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
#319    Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
#320    RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:998:16)
#321    RenderObjectToWidgetElement.update (package:flutter/src/widgets/binding.dart:976:5)
#322    RenderObjectToWidgetElement.performRebuild (package:flutter/src/widgets/binding.dart:990:7)
#323    Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
#324    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2348:33)
#325    AutomatedTestWidgetsFlutterBinding.drawFrame (package:flutter_test/src/binding.dart:940:18)
#326    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:280:5)
#327    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1033:15)
#328    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:975:9)
#329    AutomatedTestWidgetsFlutterBinding.pump.<anonymous closure> (package:flutter_test/src/binding.dart:853:9)
#332    TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:69:41)
#333    AutomatedTestWidgetsFlutterBinding.pump (package:flutter_test/src/binding.dart:840:27)
#334    WidgetTester.pumpWidget.<anonymous closure> (package:flutter_test/src/widget_tester.dart:318:22)
#337    TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:69:41)
#338    WidgetTester.pumpWidget (package:flutter_test/src/widget_tester.dart:315:27)
#339    main.<anonymous closure> (file:///home/eli/Documents/user/Mobiles/amala/amala_statistics/lib/test/w_linear_progress_test.dart:35:18)
#341    main.<anonymous closure> (file:///home/eli/Documents/user/Mobiles/amala/amala_statistics/lib/test/w_linear_progress_test.dart:33:46)
#342    testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:119:25)
#344    testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:117:9)
#345    TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:648:19)
#359    AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:1032:17)
#361    AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:1020:35)
(elided 35 frames from class _FakeAsync, package dart:async, package dart:async-patch, and package stack_trace)

════════════════════════════════════════════════════════════════════════════════════════════════════
00:08 +5 -1: /home/eli/Documents/user/Mobiles/amala/amala_statistics/lib/test/w_linear_progress_test.dart: Linear Progress Widget Test [E]   
  Test failed. See exception logs above.
  The test description was: Linear Progress Widget Test 

I tried to figure out the causes of failure finaly i found this happened only when LinearPercentIndicator values are passed from parrentWidget to LinearPercentIndicator as child