flutter weekly chart
the flutter app demonstrates displaying data in a weekly format. i came across this kind of screen in the app that i have been working on called ergonomic productivity timer
and i want to share the code of the weekly chart screen. if you find this helpful don’t forget to leave a star at the repository.
ergonomic productivity timer
is productivity timer that care for health!
get it on google play store and app store today!
how it look like?
what do the data mean?
each day in the week, the height of the chart is propotional to the fraction of each day data
divided by the max value of the week
. in this case, the max value of the week is on friday.
change current week
in this example, we only display the current and the previous weeks. we also hilight today date on current week. suppose today is friday, july 16th. current week is 12 jul – 18 jul starting from monday to sunday.
current week state
previous week state
library
this app use getx as state management library.
Comments are closed.