SWrapThemeData class
MoreContentType.wrap
样式配置
Constructors
- SWrapThemeData({double runSpacing = 10, double spacing = 10, EdgeInsets itemPadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 7), TextStyle selectedStyle = const TextStyle(color: Colors.white, fontSize: 12), TextStyle unselectedStyle = const TextStyle(color: Colors.black87, fontSize: 12), BoxDecoration selectedDecoration = const BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(4)), gradient: LinearGradient(colors: [Color(0xffF56E60), Color(0xffE72410)])), BoxDecoration unselectedDecoration = const BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(4)), gradient: LinearGradient(colors: [Color(0xfff7f7f7), Color(0xfff7f7f7)]))})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- itemPadding → EdgeInsets
-
按钮内间距
final
- runSpacing → double
-
排列间距
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDecoration → BoxDecoration
-
按钮装饰
final
- selectedStyle → TextStyle
-
文字内容字体
final
- spacing → double
-
排列间距
final
- unselectedDecoration → BoxDecoration
-
按钮装饰
final
- unselectedStyle → TextStyle
-
文字内容字体
final
Methods
-
copyWith(
{double? runSpacing, double? spacing, EdgeInsets? itemPadding, TextStyle? selectedStyle, TextStyle? unselectedStyle, BoxDecoration? selectedDecoration, BoxDecoration? unselectedDecoration}) → SWrapThemeData -
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 ==(
covariant SWrapThemeData other) → bool -
The equality operator.
override