Skip to content

Commit 322151a

Browse files
committed
refactor(content_management): remove unused position calculation code
- Remove unused code for calculating the widget's position - This change simplifies the _showOverlay function without affecting its functionality
1 parent a82042f commit 322151a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/content_management/view/widgets/searchable_paginated_dropdown.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ class _SearchablePaginatedDropdownState<T extends Equatable>
105105
void _showOverlay() {
106106
// Dismiss any existing overlay before showing a new one to prevent stacking
107107
_currentOverlayEntry?.remove();
108-
109-
// Get the render box of the current widget to calculate its position
110-
final renderBox = context.findRenderObject()! as RenderBox;
111-
// Get the global offset of the widget
112-
final offset = renderBox.localToGlobal(Offset.zero);
113108
// Get screen dimensions
114109
final screenHeight = MediaQuery.of(context).size.height;
115110
final screenWidth = MediaQuery.of(context).size.width;

0 commit comments

Comments
 (0)