CountryPhoneCodePicker class
Constructors
-
CountryPhoneCodePicker({required CountryController countryController, double height = 45, double width = 80, double flagHeight = 30, double flagWidth = 30, Color backgroundColor = Colors.transparent, double borderRadius = 15, double flagBorderRadius = 5, Color borderColor = Colors.transparent, double borderWidth = 0, EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 5, vertical: 5), TextStyle countryNameTextStyle = const TextStyle(fontSize: 14, color: Colors.black), TextStyle countryPhoneCodeTextStyle = const TextStyle(color: Colors.black, fontSize: 14), bool showFlag = true, bool showName = false, bool showPhoneCode = false, Icon actionIcon = const Icon(Icons.arrow_drop_down_rounded), Color searchSheetBackground = const Color(0xfffafafa), Icon searchBarLeadingIcon = const Icon(Icons.arrow_back_outlined, color: Colors.black), String? searchBarHintText, TextStyle searchBarHintStyle = const TextStyle(), String? searchBarLabelText, TextStyle searchBarLabelStyle = const TextStyle(), String? searchBarHelperText, TextStyle searchBarHelperStyle = const TextStyle(), String? searchBarPrefixText, TextStyle searchBarPrefixStyle = const TextStyle(), Icon searchBarPrefixIcon = const Icon(Icons.search, color: Colors.black), EdgeInsetsGeometry searchBarContentPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 5), InputBorder border = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder errorBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder focusedBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder disabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder focusedErrorBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder enabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), Color searchBarCursorColor = Colors.black, double searchBarCursorHeight = 20, double searchBarCursorWidth = 2, TextStyle style = const TextStyle(), String searchBarInitialValue = '', TextInputType keyboardType = TextInputType.text, bool showCursor = true})
-
-
CountryPhoneCodePicker.withDefaultSelectedCountry({required CountryController countryController, required Country defaultCountryCode, double height = 45, double width = 80, double flagHeight = 30, double flagWidth = 30, Color backgroundColor = Colors.transparent, double borderRadius = 15, double flagBorderRadius = 5, Color borderColor = Colors.transparent, double borderWidth = 0, EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 5, vertical: 5), TextStyle countryNameTextStyle = const TextStyle(fontSize: 14, color: Colors.black), TextStyle countryPhoneCodeTextStyle = const TextStyle(color: Colors.black, fontSize: 14), bool showFlag = true, bool showName = false, bool showPhoneCode = false, Icon actionIcon = const Icon(Icons.arrow_drop_down_rounded), Color searchSheetBackground = const Color(0xfffafafa), Icon searchBarLeadingIcon = const Icon(Icons.arrow_back_outlined, color: Colors.black), String? searchBarHintText, TextStyle searchBarHintStyle = const TextStyle(), String? searchBarLabelText, TextStyle searchBarLabelStyle = const TextStyle(), String? searchBarHelperText, TextStyle searchBarHelperStyle = const TextStyle(), String? searchBarPrefixText, TextStyle searchBarPrefixStyle = const TextStyle(), Icon searchBarPrefixIcon = const Icon(Icons.search, color: Colors.black), EdgeInsetsGeometry searchBarContentPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 5), InputBorder border = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder errorBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder focusedBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder disabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder focusedErrorBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder enabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), Color searchBarCursorColor = Colors.black, double searchBarCursorHeight = 20, double searchBarCursorWidth = 2, TextStyle style = const TextStyle(), String searchBarInitialValue = '', TextInputType keyboardType = TextInputType.text, bool showCursor = true})
-