feat(consultations): added new data to consultation model

This commit is contained in:
Username1548
2025-05-23 12:52:20 +07:00
parent 2d836002b7
commit 1dfaa7cd93
3 changed files with 13 additions and 8 deletions

View File

@@ -42,7 +42,9 @@ class ConsultationsContent extends StatelessWidget {
),
body: switch (state.state) {
BaseState.loading => const Loader(),
BaseState.error => DataErrorWidget(onReload: () async {}),
BaseState.error => DataErrorWidget(onReload: () async {
context.read<ConsultationsCubit>().loadConsultations();
}),
BaseState.initial => const Loader(),
BaseState.success => ListView.separated(
padding: const EdgeInsets.symmetric(vertical: 12),