From 2ce3306e1f3cff33b559a220e3105163b0d21924 Mon Sep 17 00:00:00 2001 From: jingyun <> Date: Thu, 28 Aug 2025 11:33:00 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=90=9C=E7=B4=A2=E6=A1=86=E8=BE=B9=E8=B7=9D=E5=B1=9E?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/country_code_picker.dart | 1 + lib/src/bottom_sheet.dart | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/country_code_picker.dart b/lib/country_code_picker.dart index c4b5260..c2baa6a 100644 --- a/lib/country_code_picker.dart +++ b/lib/country_code_picker.dart @@ -386,6 +386,7 @@ class CountryCodePickerState extends State { hideSearch: widget.hideSearch, closeIcon: widget.closeIcon, flagDecoration: widget.flagDecoration, + searchPadding: widget.searchPadding, ); }, ); diff --git a/lib/src/bottom_sheet.dart b/lib/src/bottom_sheet.dart index dcb143c..72ca2fd 100644 --- a/lib/src/bottom_sheet.dart +++ b/lib/src/bottom_sheet.dart @@ -28,6 +28,8 @@ class SelectionBottomSheet extends StatefulWidget { /// elements passed as favorite final List favoriteElements; + final EdgeInsetsGeometry searchPadding; + SelectionBottomSheet( this.elements, this.favoriteElements, { @@ -46,6 +48,7 @@ class SelectionBottomSheet extends StatefulWidget { this.barrierColor, this.hideSearch = false, this.closeIcon, + this.searchPadding = const EdgeInsets.symmetric(horizontal: 24), }) : searchDecoration = searchDecoration.prefixIcon == null ? searchDecoration.copyWith(prefixIcon: const Icon(Icons.search)) : searchDecoration, @@ -93,7 +96,7 @@ class _SelectionBottomSheetState extends State { ), if (!widget.hideSearch) Padding( - padding: const EdgeInsets.symmetric(horizontal: 24), + padding: widget.searchPadding, child: TextField( style: widget.searchStyle, decoration: widget.searchDecoration,