SpinnerHeaderTheme class
弹框视图的基本显示配置,如果完全自定义显示内容(非SpinnerEntity
常规配置)
- Available extensions
Constructors
- SpinnerHeaderTheme({double height = kMinInteractiveDimensionCupertino, TextStyle style = const TextStyle(color: Color(0xff20263A), fontSize: 14), TextStyle selectedStyle = const TextStyle(color: Color(0xffE72410), fontSize: 14), bool selectedMark = true, bool isShowBorder = true, Color bgColor = Colors.white, Color arrowColor = const Color(0xff9B9EAC), EdgeInsets padding = EdgeInsets.zero, bool outsideFocus = false, double iconSize = 25, EdgeInsets iconPading = const EdgeInsets.symmetric(horizontal: 4), TextDirection? textDirection, bool isIconAnimate = true})
-
const
Properties
- arrowColor → Color
-
三角标颜色
final
- bgColor → Color
-
背景颜色
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
组件按钮高度
final
- iconPading → EdgeInsets
-
标题和icon之间的距离,默认4
final
- iconSize → double
-
之前样式太过固定
以下针对
SpinnerHeader
的item
配置 标题icon的大小,默认25 如果是自定义输入图片,折限制为高度显示final - isIconAnimate → bool
-
是否开启旋转动画
final
- isShowBorder → bool
-
final
- outsideFocus → bool
-
页面其他部位是否含有焦点获取的组件(例如 页面顶部搜索输入框)
final
- padding → EdgeInsets
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedMark → bool
-
标题改变后 是否标记选中状态(切换字体颜色)
final
- selectedStyle → TextStyle
-
选中后的字体
final
- style → TextStyle
-
默认字体
final
- textDirection → TextDirection?
-
icon的位置,默认居右
final
Methods
-
copyWith(
{double? height, EdgeInsets? padding, TextStyle? style, TextStyle? selectedStyle, Color? bgColor, Color? arrowColor, bool? selectedMark, bool? isShowBorder, bool? outsideFocus, double? iconSize, TextDirection? textDirection, EdgeInsets? iconPading, bool? isIconAnimate}) → SpinnerHeaderTheme -
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