DropdownItemOptions constructor
const
DropdownItemOptions({
- double height = 40,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 10),
- Alignment alignment = Alignment.centerLeft,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- DropdownItemRender render = DropdownItemRender.all,
- BoxDecoration boxDecoration = const BoxDecoration(color: Color(0xFFFFFFFF)),
- BoxDecoration selectedBoxDecoration = const BoxDecoration(color: Color(0XFFEFFAF0), borderRadius: BorderRadius.all(Radius.circular(10))),
- TextStyle textStyle = const TextStyle(color: Color(0xff000000), fontSize: 16, fontWeight: FontWeight.w400),
- TextStyle selectedTextStyle = const TextStyle(color: Color(0xFF6FCC76), fontSize: 16, fontWeight: FontWeight.w400),
- EdgeInsets selectedPadding = const EdgeInsets.only(left: 20, right: 10),
- TextOverflow textOverflow = TextOverflow.ellipsis,
- bool isMarquee = false,
- Duration duration = const Duration(milliseconds: 300),
- Duration marqueeDuration = const Duration(milliseconds: 6000),
- Duration backDuration = const Duration(milliseconds: 800),
- Duration pauseDuration = const Duration(milliseconds: 800),
Implementation
const DropdownItemOptions({
this.height = 40,
this.padding = const EdgeInsets.symmetric(horizontal: 10),
this.alignment = Alignment.centerLeft,
this.mainAxisAlignment = MainAxisAlignment.start,
this.render = DropdownItemRender.all,
this.boxDecoration = const BoxDecoration(
color: Color(0xFFFFFFFF),
),
this.selectedBoxDecoration = const BoxDecoration(
color: Color(0XFFEFFAF0),
borderRadius: BorderRadius.all(Radius.circular(10)),
),
this.textStyle = const TextStyle(
color: Color(0xff000000),
fontSize: 16,
fontWeight: FontWeight.w400,
),
this.selectedTextStyle = const TextStyle(
color: Color(0xFF6FCC76),
fontSize: 16,
fontWeight: FontWeight.w400,
),
this.selectedPadding = const EdgeInsets.only(left: 20, right: 10),
this.textOverflow = TextOverflow.ellipsis,
this.isMarquee = false,
this.duration = const Duration(milliseconds: 300),
this.marqueeDuration = const Duration(milliseconds: 6000),
this.backDuration = const Duration(milliseconds: 800),
this.pauseDuration = const Duration(milliseconds: 800),
});