I can’t add border radius to linear progress indicator item. when trying add borderRadius as a parameter, it shows as error?
How to fix this issue? Your help highly appreciated
I can’t add border radius to linear progress indicator item. when trying add borderRadius as a parameter, it shows as error?
How to fix this issue? Your help highly appreciated
2
Answers
Remove Const Keyword before Linear Progress Indicator.
Because BorderRadius.circular invokes dynamic computation for painting border radius hence keyword const is making conflict there.
OR below will do the same
If still the error persist try restarting dart analysis server by pressing refresh button at top left corner in android studio