EnhancedFreeHexWidget class
增强版自由六边形 Widget 配置
Constructors
-
EnhancedFreeHexWidget({required String id, required FreeHexagon hexagon, HexFillStyle? fillStyle, HexBorderStyle borderStyle = const HexBorderStyle(), Widget? child, bool clipContent = true, VoidCallback? onTap, VoidCallback? onLongPress, VoidCallback? onDoubleTap, dynamic onHover(bool isHovering)?, HexClickAnimation clickAnimation = HexClickAnimation.scale, Duration animationDuration = const Duration(milliseconds: 200), bool draggable = false, dynamic onDragEnd(Offset newCenter)?, List<
BoxShadow> ? shadows, double opacity = 1.0, Map<String, dynamic> data = const {}}) -
const
Properties
- animationDuration → Duration
-
动画持续时间
final
- borderStyle → HexBorderStyle
-
边框样式
final
- child → Widget?
-
内容 Widget
final
- clickAnimation → HexClickAnimation
-
点击动画类型
final
- clipContent → bool
-
是否裁剪内容为六边形
final
-
data
→ Map<
String, dynamic> -
自定义数据
final
- draggable → bool
-
是否可拖拽
final
- fillStyle → HexFillStyle?
-
填充样式
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hexagon → FreeHexagon
-
六边形配置
final
- id → String
-
Widget 的唯一标识
final
- onDoubleTap → VoidCallback?
-
双击回调
final
- onDragEnd → dynamic Function(Offset newCenter)?
-
拖拽结束回调
final
- onHover → dynamic Function(bool isHovering)?
-
悬停回调
final
- onLongPress → VoidCallback?
-
长按回调
final
- onTap → VoidCallback?
-
点击回调
final
- opacity → double
-
不透明度
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadows
→ List<
BoxShadow> ? -
阴影
final
Methods
-
copyWith(
{String? id, FreeHexagon? hexagon, HexFillStyle? fillStyle, HexBorderStyle? borderStyle, Widget? child, bool? clipContent, VoidCallback? onTap, VoidCallback? onLongPress, VoidCallback? onDoubleTap, dynamic onHover(bool)?, HexClickAnimation? clickAnimation, Duration? animationDuration, bool? draggable, dynamic onDragEnd(Offset)?, List< BoxShadow> ? shadows, double? opacity, Map<String, dynamic> ? data}) → EnhancedFreeHexWidget - 复制并修改属性
-
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.
override