amira syam
amira syam

Reputation: 93

Determine the size of chart bar in flutter

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

Upvotes: 0

Views: 306

Answers (1)

Tanha Patel
Tanha Patel

Reputation: 453

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.

Upvotes: 1

Related Questions