Skip to content
Snippets Groups Projects
Commit 7ce2666c authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

add: dynamical allocation of barData, commented

parent e75526a5
No related branches found
No related tags found
1 merge request!12Clhp map
......@@ -14,8 +14,15 @@ class BarData extends StatefulWidget {
class _BarDataState extends State<BarData> {
static const double barWidth = 30;
// NB should be rounded to two decimals in server
// NB should be allocated values dynamically
/*
selectedTile.IceStats.asMap().forEach((index, iceStats) {
barData[index] = [iceStats.slushIce, iceStats.blackIce,
iceStats.snowDepth, iceStats.steelIce];
});
*/
// Bar items show data for 10 previous days
static const barData = <int, List<double>>{
0: [1.5, 3.2, 1.5, 2.2],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment