mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-25 11:59:40 +00:00
animated tab buttons.
This commit is contained in:
@ -39,9 +39,14 @@ class AnalyticsPageTabsAndChildren extends StatelessWidget {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
...AnalyticsPageTab.values.map(
|
...AnalyticsPageTab.values.map(
|
||||||
(tab) => AnalyticsPageTabButton(
|
(tab) => AnimatedSwitcher(
|
||||||
tab: tab,
|
switchInCurve: Curves.easeIn,
|
||||||
isSelected: tab == selectedTab,
|
duration: const Duration(milliseconds: 200),
|
||||||
|
child: AnalyticsPageTabButton(
|
||||||
|
key: ValueKey(selectedTab),
|
||||||
|
tab: tab,
|
||||||
|
isSelected: tab == selectedTab,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user