I am trying to create a chart that displays the data that came from the api that is supposed to be like this imageenter image description here as for the date and the size of the columns, no matter how many data are coming

I have two problems: 1- I don't know Make the widget flexible so that the column always appears the same size 2- I don’t know. Make the date the same as what is needed. It is displayed in the same form in the API enter image description here how can I fix it


Solution 1: Tanha Patel

For making a widget flexible and appear the same size you can use BoxConstraints by adding Container or SizedBox as parent widget and defining height and width.