DropdownStyle constructor
const
DropdownStyle({
- required bool invertYAxisAlignmentWhenOverflow,
- Curve transitionInCurve = Curves.linear,
- Duration transitionInDuration = const Duration(milliseconds: 100),
- 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)], - DropdownScrollbarStyle dropdownScrollbarStyle = const DropdownScrollbarStyle(),
- LinearGradient onTapItemColor = const LinearGradient(colors: [Color(0xffffffff), Color(0xefffffff)]),
- LinearGradient defaultItemColor = const LinearGradient(colors: [Color(0xefffffff), Color(0xefffffff)]),
- TextStyle defaultTextStyle = const TextStyle(color: Colors.black),
- TextStyle onTapTextStyle = const TextStyle(color: Color(0xbb000000)),
- MaterialColor onTapInkColor = _blueMat,
- double explicitMarginBetweenDropdownAndTarget = 0,
- DropdownAlignment dropdownAlignment = DropdownAlignment.bottomCenter,
- Color borderColor = const Color(0x00000000),
- double borderThickness = 0,
- DropdownMaxHeight dropdownMaxHeight = const DropdownMaxHeight(),
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(9)),
- Duration onTapColorTransitionDuration = const Duration(milliseconds: 50),
- DropdownWidth dropdownWidth = const DropdownWidth(),
Implementation
const DropdownStyle({
required this.invertYAxisAlignmentWhenOverflow,
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.onTapTextStyle = const TextStyle(color: Color(0xbb000000)),
this.onTapInkColor = _blueMat,
this.explicitMarginBetweenDropdownAndTarget = 0,
this.dropdownAlignment = DropdownAlignment.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(),
});