Compare commits
2 Commits
3.4.0
...
fix/versio
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ce3306e1f | ||
|
|
13e437d81b |
@@ -386,6 +386,7 @@ class CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
hideSearch: widget.hideSearch,
|
hideSearch: widget.hideSearch,
|
||||||
closeIcon: widget.closeIcon,
|
closeIcon: widget.closeIcon,
|
||||||
flagDecoration: widget.flagDecoration,
|
flagDecoration: widget.flagDecoration,
|
||||||
|
searchPadding: widget.searchPadding,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ class SelectionBottomSheet extends StatefulWidget {
|
|||||||
/// elements passed as favorite
|
/// elements passed as favorite
|
||||||
final List<CountryCode> favoriteElements;
|
final List<CountryCode> favoriteElements;
|
||||||
|
|
||||||
|
final EdgeInsetsGeometry searchPadding;
|
||||||
|
|
||||||
SelectionBottomSheet(
|
SelectionBottomSheet(
|
||||||
this.elements,
|
this.elements,
|
||||||
this.favoriteElements, {
|
this.favoriteElements, {
|
||||||
@@ -46,6 +48,7 @@ class SelectionBottomSheet extends StatefulWidget {
|
|||||||
this.barrierColor,
|
this.barrierColor,
|
||||||
this.hideSearch = false,
|
this.hideSearch = false,
|
||||||
this.closeIcon,
|
this.closeIcon,
|
||||||
|
this.searchPadding = const EdgeInsets.symmetric(horizontal: 24),
|
||||||
}) : searchDecoration = searchDecoration.prefixIcon == null
|
}) : searchDecoration = searchDecoration.prefixIcon == null
|
||||||
? searchDecoration.copyWith(prefixIcon: const Icon(Icons.search))
|
? searchDecoration.copyWith(prefixIcon: const Icon(Icons.search))
|
||||||
: searchDecoration,
|
: searchDecoration,
|
||||||
@@ -93,7 +96,7 @@ class _SelectionBottomSheetState extends State<SelectionBottomSheet> {
|
|||||||
),
|
),
|
||||||
if (!widget.hideSearch)
|
if (!widget.hideSearch)
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
padding: widget.searchPadding,
|
||||||
child: TextField(
|
child: TextField(
|
||||||
style: widget.searchStyle,
|
style: widget.searchStyle,
|
||||||
decoration: widget.searchDecoration,
|
decoration: widget.searchDecoration,
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
"GU": "关岛",
|
"GU": "关岛",
|
||||||
"GW": "几内亚比绍",
|
"GW": "几内亚比绍",
|
||||||
"GY": "圭亚那",
|
"GY": "圭亚那",
|
||||||
"HK": "香港",
|
"HK": "中国香港",
|
||||||
"HM": "赫德岛和麦克唐纳群岛",
|
"HM": "赫德岛和麦克唐纳群岛",
|
||||||
"HN": "洪都拉斯",
|
"HN": "洪都拉斯",
|
||||||
"HR": "克罗地亚",
|
"HR": "克罗地亚",
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
"ML": "马里",
|
"ML": "马里",
|
||||||
"MM": "缅甸",
|
"MM": "缅甸",
|
||||||
"MN": "蒙古",
|
"MN": "蒙古",
|
||||||
"MO": "澳门",
|
"MO": "中国澳门",
|
||||||
"MP": "北马里亚纳群岛",
|
"MP": "北马里亚纳群岛",
|
||||||
"MQ": "马提尼克",
|
"MQ": "马提尼克",
|
||||||
"MR": "毛里塔尼亚",
|
"MR": "毛里塔尼亚",
|
||||||
|
|||||||
Reference in New Issue
Block a user