DropdownStyle constructor

const DropdownStyle({
  1. bool invertYAxisAlignmentWhenOverflow = true,
  2. Curve transitionInCurve = Curves.linear,
  3. Duration transitionInDuration = const Duration(milliseconds: 100),
  4. List<BoxShadow> boxShadows = const [BoxShadow(color: Color.fromRGBO(0, 0, 0, 0.1), blurRadius: 10, offset: Offset(0, 1)), BoxShadow(color: Color.fromRGBO(35, 64, 98, 0.1), blurRadius: 25)],
  5. DropdownScrollbarStyle dropdownScrollbarStyle = const DropdownScrollbarStyle(),
  6. LinearGradient onTapItemColor = const LinearGradient(colors: [Color(0xffffffff), Color(0xefffffff)]),
  7. LinearGradient defaultItemColor = const LinearGradient(colors: [Color(0xefffffff), Color(0xefffffff)]),
  8. TextStyle defaultTextStyle = const TextStyle(color: Colors.black),
  9. TextStyle? descriptionStyle = const TextStyle(color: Colors.grey, fontSize: 12),
  10. TextStyle onTapTextStyle = const TextStyle(color: Color(0xbb000000)),
  11. MaterialColor onTapInkColor = _blueMat,
  12. double explicitMarginBetweenDropdownAndTarget = 0,
  13. Alignment alignment = Alignment.bottomCenter,
  14. Color borderColor = const Color(0x00000000),
  15. double borderThickness = 0,
  16. DropdownMaxHeight dropdownMaxHeight = const DropdownMaxHeight(),
  17. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(9)),
  18. Duration onTapColorTransitionDuration = const Duration(milliseconds: 50),
  19. DropdownWidth dropdownWidth = const DropdownWidth(),
  20. double spaceBetweenValueAndDescription = 12,
})

Implementation

const DropdownStyle({
  this.invertYAxisAlignmentWhenOverflow = true,
  this.transitionInCurve = Curves.linear,
  this.transitionInDuration = const Duration(milliseconds: 100),
  this.boxShadows = const [
    BoxShadow(
      color: Color.fromRGBO(0, 0, 0, 0.1),
      blurRadius: 10,
      offset: Offset(0, 1),
    ),
    BoxShadow(
      color: Color.fromRGBO(35, 64, 98, 0.1),
      blurRadius: 25,
    ),
  ],
  this.dropdownScrollbarStyle = const DropdownScrollbarStyle(),
  this.onTapItemColor =
      const LinearGradient(colors: [Color(0xffffffff), Color(0xefffffff)]),
  this.defaultItemColor =
      const LinearGradient(colors: [Color(0xefffffff), Color(0xefffffff)]),
  this.defaultTextStyle = const TextStyle(color: Colors.black),
  this.descriptionStyle = const TextStyle(color: Colors.grey, fontSize: 12),
  this.onTapTextStyle = const TextStyle(color: Color(0xbb000000)),
  this.onTapInkColor = _blueMat,
  this.explicitMarginBetweenDropdownAndTarget = 0,
  this.alignment = Alignment.bottomCenter,
  this.borderColor = const Color(0x00000000),
  this.borderThickness = 0,
  this.dropdownMaxHeight = const DropdownMaxHeight(),
  this.borderRadius = const BorderRadius.all(Radius.circular(9)),
  this.onTapColorTransitionDuration = const Duration(milliseconds: 50),
  this.dropdownWidth = const DropdownWidth(),
  this.spaceBetweenValueAndDescription = 12,
});