From a69246b11ebb4c2ac3fd6a2d49daf3a5a8f09553 Mon Sep 17 00:00:00 2001 From: Manish Date: Thu, 18 Dec 2025 11:00:03 +0530 Subject: [PATCH] match ui of sheet with existing sheet in projects --- .../manage_reporting_bottom_sheet.dart | 66 +++++++++++-------- 1 file changed, 40 insertions(+), 26 deletions(-) diff --git a/lib/view/employees/manage_reporting_bottom_sheet.dart b/lib/view/employees/manage_reporting_bottom_sheet.dart index 4816d2d..806c739 100644 --- a/lib/view/employees/manage_reporting_bottom_sheet.dart +++ b/lib/view/employees/manage_reporting_bottom_sheet.dart @@ -640,35 +640,49 @@ class _ManageReportingBottomSheetState required FocusNode focusNode, required String hint, }) { - return TextField( - controller: controller, - focusNode: focusNode, - decoration: InputDecoration( - hintText: hint, - hintStyle: const TextStyle(fontSize: 13, color: Colors.grey), - filled: true, - fillColor: Colors.grey.shade100, - prefixIcon: const Icon(Icons.search, size: 18, color: Colors.grey), - border: OutlineInputBorder( - borderRadius: BorderRadius.circular(12), - borderSide: BorderSide(color: Colors.grey.shade300), - ), - enabledBorder: OutlineInputBorder( - borderRadius: BorderRadius.circular(12), - borderSide: BorderSide(color: Colors.grey.shade300), - ), - focusedBorder: OutlineInputBorder( - borderRadius: BorderRadius.circular(12), - borderSide: const BorderSide( - color: Colors.blueAccent, - width: 1.5, + return SizedBox( + height: 48, + child: TextField( + controller: controller, + focusNode: focusNode, + style: const TextStyle(fontSize: 14), + decoration: InputDecoration( + hintText: hint, + hintStyle: const TextStyle( + fontSize: 14, + color: Colors.grey, ), + filled: true, + fillColor: Colors.grey.shade100, + prefixIcon: const Padding( + padding: EdgeInsets.only(left: 12, right: 8), + child: Icon(Icons.search, size: 18, color: Colors.grey), + ), + prefixIconConstraints: const BoxConstraints( + minWidth: 32, + minHeight: 32, + ), + + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(12), + borderSide: BorderSide(color: Colors.grey.shade300), + ), + enabledBorder: OutlineInputBorder( + borderRadius: BorderRadius.circular(12), + borderSide: BorderSide(color: Colors.grey.shade300), + ), + focusedBorder: OutlineInputBorder( + borderRadius: BorderRadius.circular(12), + borderSide: const BorderSide( + color: Colors.blueAccent, + width: 1.5, + ), + ), + contentPadding: + const EdgeInsets.symmetric(horizontal: 16, vertical: 14), + isDense: true, ), - contentPadding: - const EdgeInsets.symmetric(horizontal: 16, vertical: 14), - isDense: true, ), - style: const TextStyle(fontSize: 13), ); } }