FocusTarget class

需要鎖定的目標

Constructors

FocusTarget({dynamic identify, GlobalKey<State<StatefulWidget>>? targetKey, RRect? targetRect, SingleDescContentBuilder? descBuilder, TouchRule touchRule = TouchRule.allIntercept, BoxShape shape = BoxShape.rectangle, BorderRadius? borderRadius, BorderSide? borderSide, EdgeInsets? targetPadding, Duration? animationDuration, FocusAnimationType? animationType, Curve? animationCurve, Tween<double>? pulseVariation, TargetPlaceBuilder? targetPlaceBuilder = _defaultTargetPlaceBuilder})

Properties

animationCurve Curve?
鎖定動畫差值器
final
animationDuration Duration?
鎖定target時的動畫時間
final
animationType FocusAnimationType?
鎖定目標的方式
final
borderRadius BorderRadius?
shapeBoxShape.circle時 或目標使用targetRect時無效
final
borderSide BorderSide?
區塊外框
final
descBuilder SingleDescContentBuilder?
針對此target單獨構建的說明元件 與GuideStep.descBuilder差異在於當接收到構建請求時, 只能確定此target的rect已經獲取完成 其餘target的rect有可能尚未獲取完成 此值優先度小於FocusTarget.descBuilder, 當FocusTarget.descBuilder給定值時, 此值將會失效
final
hashCode int
The hash code for this object.
no setterinherited
identify → dynamic
final
pulseVariation Tween<double>?
目標外框顫動動畫
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape BoxShape
鎖定區塊的樣式
final
targetKey GlobalKey<State<StatefulWidget>>?
目標元件, 優先於targetPosition
final
targetPadding EdgeInsets?
target顯示的目標區塊間距 用途只是可以控制目標的間距, 因此與Padding元件不同, 可以為負值
final
targetPlaceBuilder TargetPlaceBuilder?
目標區塊上方佔位元件 會在目標區塊上方構建一個元件 通常可放置InkWell或者GestureDetector檢測點擊以及手勢 參數內會傳入目標區塊RRect, 用以方便自行調整
final
targetRect RRect?
目標區塊
final
touchRule TouchRule
觸摸規則
final

Methods

getTargetRect({bool rootOverlay = false}) RRect?
取得當下的index需要高亮的目標
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