refactor: make top professionals section height responsive to screen size

This commit is contained in:
pradeepkumar
2026-04-13 21:05:46 +05:30
parent eb8a05dcc1
commit 80fed62b28

View File

@@ -105,8 +105,9 @@ class _TopProfessionalsSectionState
_buildEmptyState(_activeTab)
else ...[
// Professional Cards - horizontal scroll
// Use screen-relative height so cards fit on all devices
SizedBox(
height: 490,
height: MediaQuery.of(context).size.height * 0.58,
child: ListView.builder(
// Unique key per tab forces Flutter to rebuild (not reuse)
// the list items, preventing stale images from the other tab.