refactor: make top professionals section height responsive to screen size
This commit is contained in:
@@ -105,8 +105,9 @@ class _TopProfessionalsSectionState
|
|||||||
_buildEmptyState(_activeTab)
|
_buildEmptyState(_activeTab)
|
||||||
else ...[
|
else ...[
|
||||||
// Professional Cards - horizontal scroll
|
// Professional Cards - horizontal scroll
|
||||||
|
// Use screen-relative height so cards fit on all devices
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 490,
|
height: MediaQuery.of(context).size.height * 0.58,
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
// Unique key per tab forces Flutter to rebuild (not reuse)
|
// Unique key per tab forces Flutter to rebuild (not reuse)
|
||||||
// the list items, preventing stale images from the other tab.
|
// the list items, preventing stale images from the other tab.
|
||||||
|
|||||||
Reference in New Issue
Block a user