bugfix/analytics_expansion_bugfix.

This commit is contained in:
Faris Armoush
2025-05-12 09:20:01 +03:00
parent b7ef9da35d
commit 2262d3b2ba

View File

@ -53,8 +53,7 @@ class AnalyticsPageTabsAndChildren extends StatelessWidget {
),
),
const Spacer(),
_buildAnimation(
child: Visibility(
Visibility(
key: ValueKey(selectedTab),
visible: selectedTab == AnalyticsPageTab.energyManagement,
child: Expanded(
@ -65,8 +64,7 @@ class AnalyticsPageTabsAndChildren extends StatelessWidget {
child: AnalyticsDateFilterButton(
onDateSelected: (DateTime value) {
context.read<AnalyticsDatePickerBloc>().add(
UpdateAnalyticsDatePickerEvent(
montlyDate: value),
UpdateAnalyticsDatePickerEvent(montlyDate: value),
);
FetchEnergyManagementDataHelper
.fetchEnergyManagementData(
@ -82,7 +80,6 @@ class AnalyticsPageTabsAndChildren extends StatelessWidget {
),
),
),
),
],
),
),