FDropdown constructor
const
FDropdown({
- Key? key,
- ValueChanged? onChanged,
- double height = 40,
- double borderRadius = 10,
- TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 20),
- EdgeInsetsGeometry? contentPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 5),
- required List<
DropdownMenuItem> items, - required dynamic currentValue,
- required Color color,
- required String title,
- IconData? prefixIcon,
- TextStyle titleStyle = const TextStyle(overflow: TextOverflow.ellipsis),
- TextStyle hintStyle = const TextStyle(color: Color(0xFF424242)),
- Color fillColor = Colors.white70,
- Color? selectedColor,
- String? hintText,
- Widget? suffixIcon,
- InputBorder? inputBorder,
- Color dropDownColor = const Color.fromRGBO(200, 200, 200, 0.4),
- InputBorder? enabledBorder = const OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(10)), borderSide: BorderSide(color: Color(0xFF646464), width: 0.5)),
Implementation
const FDropdown(
{Key? key,
this.onChanged,
this.height = 40,
this.borderRadius = 10,
this.textStyle = const TextStyle(color: Colors.black, fontSize: 20),
this.contentPadding =
const EdgeInsets.symmetric(horizontal: 10, vertical: 5),
required this.items,
required this.currentValue,
required this.color,
required this.title,
this.prefixIcon,
this.titleStyle = const TextStyle(overflow: TextOverflow.ellipsis),
this.hintStyle = const TextStyle(color: Color(0xFF424242)),
this.fillColor = Colors.white70,
this.selectedColor,
this.hintText,
this.suffixIcon,
this.inputBorder,
this.dropDownColor = const Color.fromRGBO(200, 200, 200, 0.4),
this.enabledBorder = const OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(10)),
borderSide: BorderSide(color: Color(0xFF646464), width: 0.5))})
: super(key: key);