progress indicators
This commit is contained in:
parent
7553ce25f8
commit
d8ecd50acd
2 changed files with 24 additions and 14 deletions
|
@ -76,8 +76,10 @@ class _CustomerGraphsState extends State<CustomerGraphs> {
|
||||||
child: totalLastWeekGraph.graph != null
|
child: totalLastWeekGraph.graph != null
|
||||||
? new charts.TimeSeriesChart(totalLastWeekGraph.graph)
|
? new charts.TimeSeriesChart(totalLastWeekGraph.graph)
|
||||||
: Center(
|
: Center(
|
||||||
child: Text(
|
child: CircularProgressIndicator(
|
||||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
valueColor: new AlwaysStoppedAnimation<Color>(Colors.orange),
|
||||||
|
)
|
||||||
|
), //List<Series<dynamic, DateTime>>es<dynamic, DateTime>>
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
|
@ -100,8 +102,10 @@ class _CustomerGraphsState extends State<CustomerGraphs> {
|
||||||
child: avgSpendLastWeekGraph.graph != null
|
child: avgSpendLastWeekGraph.graph != null
|
||||||
? new charts.TimeSeriesChart(avgSpendLastWeekGraph.graph)
|
? new charts.TimeSeriesChart(avgSpendLastWeekGraph.graph)
|
||||||
: Center(
|
: Center(
|
||||||
child: Text(
|
child: CircularProgressIndicator(
|
||||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
valueColor: new AlwaysStoppedAnimation<Color>(Colors.blue),
|
||||||
|
)
|
||||||
|
), //List<Series<dynamic, DateTime>>es<dynamic, DateTime>>
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
|
@ -124,8 +128,10 @@ class _CustomerGraphsState extends State<CustomerGraphs> {
|
||||||
child: totalLastMonthGraph.graph != null
|
child: totalLastMonthGraph.graph != null
|
||||||
? new charts.TimeSeriesChart(totalLastMonthGraph.graph)
|
? new charts.TimeSeriesChart(totalLastMonthGraph.graph)
|
||||||
: Center(
|
: Center(
|
||||||
child: Text(
|
child: CircularProgressIndicator(
|
||||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
valueColor: new AlwaysStoppedAnimation<Color>(Colors.green),
|
||||||
|
)
|
||||||
|
), //List<Series<dynamic, DateTime>>es<dynamic, DateTime>>
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
|
@ -148,8 +154,10 @@ class _CustomerGraphsState extends State<CustomerGraphs> {
|
||||||
child: avgSpendLastMonth.graph != null
|
child: avgSpendLastMonth.graph != null
|
||||||
? new charts.TimeSeriesChart(avgSpendLastMonth.graph)
|
? new charts.TimeSeriesChart(avgSpendLastMonth.graph)
|
||||||
: Center(
|
: Center(
|
||||||
child: Text(
|
child: CircularProgressIndicator(
|
||||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
valueColor: new AlwaysStoppedAnimation<Color>(Colors.red),
|
||||||
|
)
|
||||||
|
), //List<Series<dynamic, DateTime>>es<dynamic, DateTime>>
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -114,8 +114,7 @@ class _OrgGraphsState extends State<OrgGraphs> {
|
||||||
child: customersLastMonth.graph != null
|
child: customersLastMonth.graph != null
|
||||||
? new charts.TimeSeriesChart(customersLastMonth.graph)
|
? new charts.TimeSeriesChart(customersLastMonth.graph)
|
||||||
: Center(
|
: Center(
|
||||||
child: Text(
|
child: CircularProgressIndicator()), //List<Series<dynamic, DateTime>>
|
||||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -139,8 +138,9 @@ class _OrgGraphsState extends State<OrgGraphs> {
|
||||||
child: salesLastMonth.graph != null
|
child: salesLastMonth.graph != null
|
||||||
? new charts.TimeSeriesChart(salesLastMonth.graph)
|
? new charts.TimeSeriesChart(salesLastMonth.graph)
|
||||||
: Center(
|
: Center(
|
||||||
child: Text(
|
child: CircularProgressIndicator(
|
||||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
valueColor: new AlwaysStoppedAnimation<Color>(Colors.green),
|
||||||
|
)), //List<Series<dynamic, DateTime>>
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -164,8 +164,10 @@ class _OrgGraphsState extends State<OrgGraphs> {
|
||||||
child: purchasesLastMonth.graph != null
|
child: purchasesLastMonth.graph != null
|
||||||
? new charts.TimeSeriesChart(purchasesLastMonth.graph)
|
? new charts.TimeSeriesChart(purchasesLastMonth.graph)
|
||||||
: Center(
|
: Center(
|
||||||
child: Text(
|
child: CircularProgressIndicator(
|
||||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
valueColor: new AlwaysStoppedAnimation<Color>(Colors.red),
|
||||||
|
)
|
||||||
|
), //List<Series<dynamic, DateTime>>
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
Reference in a new issue