You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically what I want to make is an expandable card widget. In which it's height can dynamically change depending on the length of the title.
What I basically did is make two widgets. ListCardLayer and ExpansionButtonLayer. The ExpansionButtonLayer's size should depend on the ListCardLayer. And for the most part I got it working. One thing to note (this is what causing my problem) is that the height of the expansion button, should be the same as the ListCard when it is not expanded, and is shortened to 51 px when expanded.
The problem that I face is when animating the expansion button. I tried using AnimatedContainer and gave it a height of null when it is not expanded and 51 when it is expanded. But I got this error.
Cannot interpolate between finite constraints and unbounded constraints.
Some advice on this would be greatly appreciated. If you'd want me to give a recording of the error while animating do tell me. (the error only pops up while animating. After the animation is finished, the expansion button is of correct size)
@PixelToast Thank you so so much. It is exactly what I wanted. You're amazing! You saved me from making a full deep dive on RenderObjects, which might have been overkill I guess.
One more thing I would like to ask, since I want to implement a background image and make it expandable how should I go about doing it? Since the image needs to be behind the Material (I wrapped the Column in an Inkwell) I'm guessing I should use Stack but I can't get the size of the widget then. Should I use CustomBoxy?
Hi, I need some help on using Boxy.
Basically what I want to make is an expandable card widget. In which it's height can dynamically change depending on the length of the title.
What I basically did is make two widgets. ListCardLayer and ExpansionButtonLayer. The ExpansionButtonLayer's size should depend on the ListCardLayer. And for the most part I got it working. One thing to note (this is what causing my problem) is that the height of the expansion button, should be the same as the ListCard when it is not expanded, and is shortened to 51 px when expanded.
The problem that I face is when animating the expansion button. I tried using AnimatedContainer and gave it a height of null when it is not expanded and 51 when it is expanded. But I got this error.
Cannot interpolate between finite constraints and unbounded constraints.
Some advice on this would be greatly appreciated. If you'd want me to give a recording of the error while animating do tell me. (the error only pops up while animating. After the animation is finished, the expansion button is of correct size)
Visual look of an unexpanded and expanded card which I'm trying to make.
The text was updated successfully, but these errors were encountered: