PickerStyle class

基础样式 showTitleBar 是否显示头部(选择器以上的控件) 默认:true menu 头部和选择器之间的菜单widget,默认null 不显示 title 头部 中间的标题 默认SizedBox() 不显示 pickerHeight 选择器下面 picker 的整体高度 固定高度:220.0 pickerTitleHeight 选择器上面 title 确认、取消的整体高度 固定高度:44.0 pickerItemHeight 选择器每个被选中item的高度:40.0 menuHeight 头部和选择器之间的菜单高度 固定高度:36.0 cancelButton 头部的取消按钮 commitButton 头部的确认按钮 textColor 选择器的文字颜色 默认黑色 textSize 选择器的文字大小 backgroundColor 选择器的背景颜色 默认白色 headDecoration 头部Container 的Decoration 默认:BoxDecoration(color: Colors.white)

Implementers

Constructors

PickerStyle({BuildContext? context, bool? showTitleBar, Widget? menu, double? pickerHeight, double? pickerTitleHeight, double? pickerItemHeight, double? menuHeight, Widget? cancelButton, Widget? commitButton, Widget? title, Decoration? headDecoration, Color? backgroundColor, Color? textColor, double? textSize, Widget? itemOverlay})

Properties

backgroundColor Color
选择器背景色 默认白色
getter/setter pair
cancelButton Widget
getter/setter pair
commitButton Widget
getter/setter pair
context BuildContext?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headDecoration Decoration
getter/setter pair
itemOverlay Widget?
getter/setter pair
getter/setter pair
getter/setter pair
pickerHeight double
getter/setter pair
pickerItemHeight double
getter/setter pair
pickerTitleHeight double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTitleBar bool
getter/setter pair
textColor Color
getter/setter pair
textSize double?
getter/setter pair
title Widget
getter/setter pair

Methods

getCancelButton() Widget
getCommitButton() Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited