dropdown method
Implementation
Widget dropdown({
required double width,
required Function onChange,
required Key key,
required List dropdownList,
required Map defaultValue,
required double thisWidth,
}) {
return CoolDropdown(
key: key,
dropdownList: dropdownList,
onChange: onChange,
defaultValue: defaultValue,
resultWidth: thisWidth,
resultPadding: EdgeInsets.only(right: 0, left: 0),
resultHeight: width * 0.1,
resultTS: TextStyle(fontSize: width * 0.045, color: Colors.white),
resultMainAxis: MainAxisAlignment.center,
labelIconGap: 0,
resultIconLeftGap: 0,
dropdownItemMainAxis: MainAxisAlignment.center,
dropdownWidth: thisWidth,
dropdownHeight: width * 0.75,
dropdownPadding: EdgeInsets.zero,
dropdownItemTopGap: 0,
dropdownItemBottomGap: 0,
dropdownItemHeight: width * 0.125,
dropdownItemGap: 0,
unselectedItemTS: TextStyle(fontSize: width * 0.04, color: Colors.black),
selectedItemBD: BoxDecoration(
border: Border.all(width: 0.5, color: Color(0XFFF4F4F4)),
color: Color(0XFFF4F4F4)),
selectedItemTS: TextStyle(
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: width * 0.04),
dropdownBD: BoxDecoration(
border: Border.all(width: 0.5, color: Color(0XFFDDDDDD)),
color: Colors.white),
resultBD: BoxDecoration(),
isTriangle: false,
gap: 0,
);
}