fix: history skeleton container

This commit is contained in:
akhdanre 2025-05-26 12:35:15 +07:00
parent 9a0ccc5c61
commit 27a1b9ada6
2 changed files with 14 additions and 13 deletions

View File

@ -29,11 +29,13 @@ class HistoryView extends GetView<HistoryController> {
const SizedBox(height: 20), const SizedBox(height: 20),
Obx(() { Obx(() {
if (controller.isLoading.value) { if (controller.isLoading.value) {
return ListView.builder( return Expanded(
child: ListView.builder(
itemCount: 3, itemCount: 3,
itemBuilder: (context, index) { itemBuilder: (context, index) {
return ContainerSkeleton(); return ContainerSkeleton();
}, },
),
); );
} }

View File

@ -113,14 +113,13 @@ class SearchView extends GetView<SearchQuizController> {
RxList<QuizListingModel> data, RxList<QuizListingModel> data,
VoidCallback onAllTap, VoidCallback onAllTap,
) { ) {
return SizedBox( return Obx(
height: 410, () => RecomendationComponent(
child: Obx(() => RecomendationComponent(
title: title, title: title,
datas: data.toList(), datas: data.toList(),
itemOnTap: controller.goToDetailPage, itemOnTap: controller.goToDetailPage,
allOnTap: onAllTap, allOnTap: onAllTap,
)), ),
); );
} }
} }