mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 23:27:25 +00:00
populated linear data for RangeOfAqiChart
, for a more pleasant dev experience and debugging.
This commit is contained in:
@ -9,46 +9,65 @@ class RangeOfAqiChartBox extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
padding: const EdgeInsetsDirectional.all(20),
|
padding: const EdgeInsetsDirectional.all(30),
|
||||||
decoration: secondarySection,
|
decoration: subSectionContainerDecoration.copyWith(
|
||||||
|
borderRadius: BorderRadius.circular(30),
|
||||||
|
),
|
||||||
child: const Column(
|
child: const Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
spacing: 20,
|
|
||||||
children: [
|
children: [
|
||||||
ChartTitle(title: Text('Range of AQI')),
|
ChartTitle(title: Text('Range of AQI')),
|
||||||
|
SizedBox(height: 10),
|
||||||
|
Divider(),
|
||||||
|
SizedBox(height: 20),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: RangeOfAqiChart(
|
child: RangeOfAqiChart(
|
||||||
avgValues: [
|
avgValues: [
|
||||||
120,
|
50,
|
||||||
60,
|
|
||||||
110,
|
|
||||||
100,
|
|
||||||
90,
|
|
||||||
70,
|
70,
|
||||||
80,
|
|
||||||
90,
|
90,
|
||||||
100,
|
|
||||||
110,
|
110,
|
||||||
120,
|
|
||||||
150,
|
|
||||||
160
|
|
||||||
],
|
|
||||||
minValues: [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130],
|
|
||||||
maxValues: [
|
|
||||||
130,
|
130,
|
||||||
140,
|
|
||||||
150,
|
150,
|
||||||
160,
|
|
||||||
170,
|
170,
|
||||||
180,
|
|
||||||
190,
|
190,
|
||||||
200,
|
|
||||||
210,
|
210,
|
||||||
220,
|
|
||||||
230,
|
230,
|
||||||
|
250,
|
||||||
|
270,
|
||||||
|
290,
|
||||||
|
],
|
||||||
|
minValues: [
|
||||||
|
0,
|
||||||
|
20,
|
||||||
|
40,
|
||||||
|
60,
|
||||||
|
80,
|
||||||
|
100,
|
||||||
|
120,
|
||||||
|
140,
|
||||||
|
160,
|
||||||
|
180,
|
||||||
|
200,
|
||||||
|
220,
|
||||||
240,
|
240,
|
||||||
],
|
],
|
||||||
|
maxValues: [
|
||||||
|
100,
|
||||||
|
120,
|
||||||
|
140,
|
||||||
|
160,
|
||||||
|
180,
|
||||||
|
200,
|
||||||
|
220,
|
||||||
|
240,
|
||||||
|
260,
|
||||||
|
280,
|
||||||
|
300,
|
||||||
|
301,
|
||||||
|
301,
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user