mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-17 02:25:31 +00:00
show aqi tab on analytics page.
This commit is contained in:
@ -41,19 +41,15 @@ class AnalyticsPageTabsAndChildren extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
...AnalyticsPageTab.values
|
...AnalyticsPageTab.values.map(
|
||||||
.where(
|
(tab) => _buildAnimation(
|
||||||
(tab) => tab != AnalyticsPageTab.airQuality,
|
child: AnalyticsPageTabButton(
|
||||||
)
|
key: ValueKey(selectedTab),
|
||||||
.map(
|
tab: tab,
|
||||||
(tab) => _buildAnimation(
|
isSelected: tab == selectedTab,
|
||||||
child: AnalyticsPageTabButton(
|
|
||||||
key: ValueKey(selectedTab),
|
|
||||||
tab: tab,
|
|
||||||
isSelected: tab == selectedTab,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user