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
|
||||
? new charts.TimeSeriesChart(totalLastWeekGraph.graph)
|
||||
: Center(
|
||||
child: Text(
|
||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
||||
child: CircularProgressIndicator(
|
||||
valueColor: new AlwaysStoppedAnimation<Color>(Colors.orange),
|
||||
)
|
||||
), //List<Series<dynamic, DateTime>>es<dynamic, DateTime>>
|
||||
),
|
||||
),
|
||||
Container(
|
||||
|
@ -100,8 +102,10 @@ class _CustomerGraphsState extends State<CustomerGraphs> {
|
|||
child: avgSpendLastWeekGraph.graph != null
|
||||
? new charts.TimeSeriesChart(avgSpendLastWeekGraph.graph)
|
||||
: Center(
|
||||
child: Text(
|
||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
||||
child: CircularProgressIndicator(
|
||||
valueColor: new AlwaysStoppedAnimation<Color>(Colors.blue),
|
||||
)
|
||||
), //List<Series<dynamic, DateTime>>es<dynamic, DateTime>>
|
||||
),
|
||||
),
|
||||
Container(
|
||||
|
@ -124,8 +128,10 @@ class _CustomerGraphsState extends State<CustomerGraphs> {
|
|||
child: totalLastMonthGraph.graph != null
|
||||
? new charts.TimeSeriesChart(totalLastMonthGraph.graph)
|
||||
: Center(
|
||||
child: Text(
|
||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
||||
child: CircularProgressIndicator(
|
||||
valueColor: new AlwaysStoppedAnimation<Color>(Colors.green),
|
||||
)
|
||||
), //List<Series<dynamic, DateTime>>es<dynamic, DateTime>>
|
||||
),
|
||||
),
|
||||
Container(
|
||||
|
@ -148,8 +154,10 @@ class _CustomerGraphsState extends State<CustomerGraphs> {
|
|||
child: avgSpendLastMonth.graph != null
|
||||
? new charts.TimeSeriesChart(avgSpendLastMonth.graph)
|
||||
: Center(
|
||||
child: Text(
|
||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
||||
child: CircularProgressIndicator(
|
||||
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
|
||||
? new charts.TimeSeriesChart(customersLastMonth.graph)
|
||||
: Center(
|
||||
child: Text(
|
||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
||||
child: CircularProgressIndicator()), //List<Series<dynamic, DateTime>>
|
||||
),
|
||||
),
|
||||
|
||||
|
@ -139,8 +138,9 @@ class _OrgGraphsState extends State<OrgGraphs> {
|
|||
child: salesLastMonth.graph != null
|
||||
? new charts.TimeSeriesChart(salesLastMonth.graph)
|
||||
: Center(
|
||||
child: Text(
|
||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
||||
child: CircularProgressIndicator(
|
||||
valueColor: new AlwaysStoppedAnimation<Color>(Colors.green),
|
||||
)), //List<Series<dynamic, DateTime>>
|
||||
),
|
||||
),
|
||||
|
||||
|
@ -164,8 +164,10 @@ class _OrgGraphsState extends State<OrgGraphs> {
|
|||
child: purchasesLastMonth.graph != null
|
||||
? new charts.TimeSeriesChart(purchasesLastMonth.graph)
|
||||
: Center(
|
||||
child: Text(
|
||||
"Loading graph...")), //List<Series<dynamic, DateTime>>
|
||||
child: CircularProgressIndicator(
|
||||
valueColor: new AlwaysStoppedAnimation<Color>(Colors.red),
|
||||
)
|
||||
), //List<Series<dynamic, DateTime>>
|
||||
),
|
||||
),
|
||||
|
||||
|
|
Reference in a new issue