DropdownOptions constructor
const
DropdownOptions({
- double? width,
- double height = 220,
- double top = 0,
- double left = 0,
- Color color = Colors.white,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(10)),
- BorderSide borderSide = BorderSide.none,
- List<
BoxShadow> shadows = const [BoxShadow(color: Color(0x1a9E9E9E), spreadRadius: 1, blurRadius: 10, offset: Offset(0, 1))], - DropdownAnimationType animationType = DropdownAnimationType.scale,
- DropdownAlign align = DropdownAlign.center,
- SelectedItemAlign selectedItemAlign = SelectedItemAlign.center,
- DropdownGap gap = DropdownGap.zero,
- EdgeInsets padding = EdgeInsets.zero,
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.easeInOut,
Implementation
const DropdownOptions({
this.width,
this.height = 220,
this.top = 0,
this.left = 0,
this.color = Colors.white,
this.borderRadius = const BorderRadius.all(Radius.circular(10)),
this.borderSide = BorderSide.none,
this.shadows = const [
BoxShadow(
color: Color(0x1a9E9E9E),
spreadRadius: 1,
blurRadius: 10,
offset: Offset(0, 1),
)
],
this.animationType = DropdownAnimationType.scale,
this.align = DropdownAlign.center,
this.selectedItemAlign = SelectedItemAlign.center,
this.gap = DropdownGap.zero,
this.padding = EdgeInsets.zero,
this.duration = const Duration(milliseconds: 300),
this.curve = Curves.easeInOut,
});