BottomsheetConfig constructor

BottomsheetConfig({
  1. Color backgroundColor = const Color(0xFFFDFDFD),
  2. Color searchBoxBackgroundColor = const Color(0xffdcdcdc),
  3. Color searchBoxIconColor = const Color(0xFF000000),
  4. double countryItemHeight = 55,
  5. double itemFlagSize = 30,
  6. bool flatFlag = false,
  7. Color selectedItemColor = const Color(0xffd7d5d5),
  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

BottomsheetConfig({
  this.backgroundColor = const Color(0xFFFDFDFD),
  this.searchBoxBackgroundColor = const Color(0xffdcdcdc),
  this.searchBoxIconColor = const Color(0xFF000000),
  this.countryItemHeight = 55,
  this.itemFlagSize = 30,
  this.flatFlag = false,
  this.selectedItemColor = const Color(0xffd7d5d5),
  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(0xFF070707).withOpacity(0.7),
              fontSize: 14,
              fontWeight: FontWeight.w600),
      searchBoxTextStyle = searchBoxTextStyle ??
          TextStyle(
              color: const Color(0xFF000000).withOpacity(0.7),
              fontSize: 14,
              fontWeight: FontWeight.w600),
      titleStyle = titleStyle ??
          const TextStyle(
              color: Color(0xFF000000),
              fontSize: 18,
              fontWeight: FontWeight.w700),
      searchBoxHintStyle = searchBoxHintStyle ??
          TextStyle(
              color: const Color(0xFF000000).withOpacity(0.7),
              fontSize: 14,
              fontWeight: FontWeight.w600),
      selectedIcon = selectedIcon ??
          const Padding(
            padding: EdgeInsets.only(left: 10),
            child: Icon(
              Icons.check_circle_outline,
              color: Colors.green,
            ),
          );