DecoratedDropdownButton constructor
DecoratedDropdownButton({
- Key? key,
- required String value,
- required List<
DropdownMenuItem< items,String> > - required void onChanged(
- Object? value
- BorderRadius? borderRadius,
- Border? border,
- Color? color,
- LinearGradient? gradient,
- List<
BoxShadow> ? boxShadow, - Icon icon = const Icon(Icons.arrow_drop_down),
- EdgeInsets iconPadding = const EdgeInsets.only(left: 20),
- BoxShape shape = BoxShape.rectangle,
- EdgeInsets padding = const EdgeInsets.only(left: 20, right: 20),
- TextStyle? style,
- Widget? underline,
- bool isExpanded = true,
- Color? iconEnableColor,
- Color? iconDisableColor,
- Color? dropdownColor,
- Color? focusColor,
- bool autoFocus = false,
- AlignmentGeometry alignment = AlignmentDirectional.centerStart,
- FocusNode? node,
- Widget? hint,
- Widget? disabledHint,
Implementation
DecoratedDropdownButton(
{Key? key,
required this.value,
required this.items,
required this.onChanged,
this.borderRadius,
this.border,
this.color,
this.gradient,
this.boxShadow,
this.icon = const Icon(Icons.arrow_drop_down),
this.iconPadding = const EdgeInsets.only(left:20),
this.shape = BoxShape.rectangle,
this.padding = const EdgeInsets.only(left:20, right:20),
this.style,
this.underline,
this.isExpanded = true,
this.iconEnableColor,
this.iconDisableColor,
this.dropdownColor,
this.focusColor,
this.autoFocus = false,
this.alignment = AlignmentDirectional.centerStart,
this.node,
this.hint,
this.disabledHint,
}
) : super(key: key);