fix: history skeleton container
This commit is contained in:
parent
9a0ccc5c61
commit
27a1b9ada6
|
@ -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();
|
||||||
},
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
)),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue