mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-11-27 05:24:56 +00:00
shows AnalyticsErrorWidget and spacing under it only when there is an error.
This commit is contained in:
@ -22,8 +22,10 @@ class RangeOfAqiChartBox extends StatelessWidget {
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
|
if (state.errorMessage != null) ...[
|
||||||
AnalyticsErrorWidget(state.errorMessage),
|
AnalyticsErrorWidget(state.errorMessage),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
|
],
|
||||||
const RangeOfAqiChartTitle(),
|
const RangeOfAqiChartTitle(),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
|
|||||||
Reference in New Issue
Block a user