Live Stream PK Battle
I want to make a score line like this in flutter that will increase or decrease according to score. and will animate the icons also.
Please help if any one knows about it
Live Stream PK Battle
I want to make a score line like this in flutter that will increase or decrease according to score. and will animate the icons also.
Please help if any one knows about it
2
Answers
Okay, Thank you so much MrOrphan
You can reach the scoreline like:
Remember, if you have multiple Expanded with flex, they will share the remaining space like:
spaceOfTheFirst= (remainingSpace / [flexOfTheFirst+flexOfTheSecond+…]) * flexOfTheFirst
So like this you can easily update your score with set state. also your widget have to be an Stateful Widget!
For the animation, search again here in stackover flow, there are several examples. Try it your self. If you stuck somewhere make a new question for Icon animation, provide some code, and describe what kind of icon-animation you exactly want.
Good Luck!