FDropdown constructor

const FDropdown({
  1. Key? key,
  2. ValueChanged? onChanged,
  3. double height = 40,
  4. double borderRadius = 10,
  5. TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 20),
  6. EdgeInsetsGeometry? contentPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 5),
  7. required List<DropdownMenuItem> items,
  8. required dynamic currentValue,
  9. required Color color,
  10. required String title,
  11. IconData? prefixIcon,
  12. TextStyle titleStyle = const TextStyle(overflow: TextOverflow.ellipsis),
  13. TextStyle hintStyle = const TextStyle(color: Color(0xFF424242)),
  14. Color fillColor = Colors.white70,
  15. Color? selectedColor,
  16. String? hintText,
  17. Widget? suffixIcon,
  18. InputBorder? inputBorder,
  19. Color dropDownColor = const Color.fromRGBO(200, 200, 200, 0.4),
  20. 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);