DialogConfig constructor

DialogConfig({
  1. Color backgroundColor = const Color(0xFF444448),
  2. Color searchBoxBackgroundColor = const Color(0xFF56565a),
  3. Color searchBoxIconColor = const Color(0xFFFAFAFA),
  4. double countryItemHeight = 55,
  5. double itemFlagSize = 30,
  6. bool flatFlag = false,
  7. Color selectedItemColor = const Color(0xFF56565a),
  8. Color topBarColor = const Color(0xFF1B1C24),
  9. double searchBoxRadius = 7,
  10. String title = "Country Codes",
  11. String searchHintText = "Search",
  12. Widget? selectedIcon,
  13. TextStyle? textStyle,
  14. TextStyle? searchBoxTextStyle,
  15. TextStyle? titleStyle,
  16. TextStyle? searchBoxHintStyle,
})

Implementation

DialogConfig({
  this.backgroundColor = const Color(0xFF444448),
  this.searchBoxBackgroundColor = const Color(0xFF56565a),
  this.searchBoxIconColor = const Color(0xFFFAFAFA),
  this.countryItemHeight = 55,
  this.itemFlagSize = 30,
  this.flatFlag = false,
  this.selectedItemColor = const Color(0xFF56565a),
  this.topBarColor = const Color(0xFF1B1C24),
  this.searchBoxRadius = 7,
  this.title = "Country Codes",
  this.searchHintText = "Search",
  Widget? selectedIcon,
  TextStyle? textStyle,
  TextStyle? searchBoxTextStyle,
  TextStyle? titleStyle,
  TextStyle? searchBoxHintStyle,
})  : textStyle = textStyle ??
          TextStyle(
              color: const Color(0xFFFAFAFA).withOpacity(0.7),
              fontSize: 14,
              fontWeight: FontWeight.w600),
      searchBoxTextStyle = searchBoxTextStyle ??
          TextStyle(
              color: const Color(0xFFFAFAFA).withOpacity(0.7),
              fontSize: 14,
              fontWeight: FontWeight.w600),
      titleStyle = titleStyle ??
          const TextStyle(
              color: Color(0xFFFAFAFA),
              fontSize: 18,
              fontWeight: FontWeight.w700),
      searchBoxHintStyle = searchBoxHintStyle ??
          TextStyle(
              color: const Color(0xFFFAFAFA).withOpacity(0.7),
              fontSize: 14,
              fontWeight: FontWeight.w600),
      selectedIcon = selectedIcon ??
          Padding(
            padding: const EdgeInsets.only(left: 10),
            child: Image.asset(
              "packages/intl_phone_number_field/assets/check.png",
              width: 20,
              fit: BoxFit.fitWidth,
            ),
          );