From 27a1b9ada66c5a3afc2e37fb12a772ac345cf49a Mon Sep 17 00:00:00 2001 From: akhdanre Date: Mon, 26 May 2025 12:35:15 +0700 Subject: [PATCH] fix: history skeleton container --- lib/feature/history/view/history_view.dart | 12 +++++++----- lib/feature/search/view/search_view.dart | 15 +++++++-------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/lib/feature/history/view/history_view.dart b/lib/feature/history/view/history_view.dart index 300787d..6394f3a 100644 --- a/lib/feature/history/view/history_view.dart +++ b/lib/feature/history/view/history_view.dart @@ -29,11 +29,13 @@ class HistoryView extends GetView { const SizedBox(height: 20), Obx(() { if (controller.isLoading.value) { - return ListView.builder( - itemCount: 3, - itemBuilder: (context, index) { - return ContainerSkeleton(); - }, + return Expanded( + child: ListView.builder( + itemCount: 3, + itemBuilder: (context, index) { + return ContainerSkeleton(); + }, + ), ); } diff --git a/lib/feature/search/view/search_view.dart b/lib/feature/search/view/search_view.dart index f0ea3f4..c12778f 100644 --- a/lib/feature/search/view/search_view.dart +++ b/lib/feature/search/view/search_view.dart @@ -113,14 +113,13 @@ class SearchView extends GetView { RxList data, VoidCallback onAllTap, ) { - return SizedBox( - height: 410, - child: Obx(() => RecomendationComponent( - title: title, - datas: data.toList(), - itemOnTap: controller.goToDetailPage, - allOnTap: onAllTap, - )), + return Obx( + () => RecomendationComponent( + title: title, + datas: data.toList(), + itemOnTap: controller.goToDetailPage, + allOnTap: onAllTap, + ), ); } }