bug fixed :on empty cards case couldn't refresh

This commit is contained in:
MhdZiadHirati 2023-11-02 15:29:47 +03:00
parent 6ea931a265
commit 537122e45d

View File

@ -182,6 +182,12 @@ class HomeScreen extends StatelessWidget {
).center(); ).center();
} else { } else {
return Obx(() { return Obx(() {
if (cardController
.cardState.result.data.isEmpty) {
return SizedBox(
height: Get.height,
);
}
return ResponsiveView( return ResponsiveView(
mainAxisExtent: mainAxisExtent:
Responsive.isTablet() ? 200 : 158, Responsive.isTablet() ? 200 : 158,