mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +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,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
AnalyticsErrorWidget(state.errorMessage),
|
||||
const SizedBox(height: 10),
|
||||
if (state.errorMessage != null) ...[
|
||||
AnalyticsErrorWidget(state.errorMessage),
|
||||
const SizedBox(height: 10),
|
||||
],
|
||||
const RangeOfAqiChartTitle(),
|
||||
const SizedBox(height: 10),
|
||||
const Divider(),
|
||||
|
Reference in New Issue
Block a user