refactor: make top professionals section height responsive to screen size
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user