TutorialConfiguration class
引导配置类
Constructors
-
TutorialConfiguration({bool enabled = true, bool autoStart = false, Color overlayColor = const Color(0xCC000000), String skipButtonText = 'Skip', ButtonStyle? skipButtonStyle, double skipButtonMargin = 20.0, TextStyle hintStyle = const TextStyle(color: Colors.white, fontSize: 16, fontWeight: FontWeight.w500), Color hintBackgroundColor = Colors.transparent, double hintBorderRadius = 8.0, EdgeInsets hintPadding = EdgeInsets.zero, double hintContainerMargin = 20.0, double hintEstimatedHeight = 150.0, double connectionLineLength = 60.0, double iconSize = 56.0, double lineToIconDistance = 20.0, double iconToTextDistance = 12.0, double spotlightPadding = 20.0, Duration spotlightAnimationDuration = const Duration(milliseconds: 800), Color highlightBorderColor = Colors.orange, double highlightBorderWidth = 3.0, bool enablePulseAnimation = true, Color pulseColor = Colors.orange, Duration pulseAnimationDuration = const Duration(milliseconds: 2000), Duration startDelay = const Duration(milliseconds: 1000), Duration stepInterval = const Duration(milliseconds: 800), Map<
TutorialStep, String> stepTexts = const {TutorialStep.none : '', TutorialStep.dragVertex : 'Drag the highlighted vertex to adjust the quadrilateral shape.\nPerfect for quick and rough positioning.', TutorialStep.longPressVertex : 'Long press the highlighted vertex to enter precision mode.\nIdeal for fine-tuning vertex positions with enhanced accuracy.', TutorialStep.doubleTapVertex : 'Double tap the highlighted vertex to reveal the virtual D-pad.\nEnables pixel-perfect vertex positioning with directional controls.', TutorialStep.useDPad : 'Use the directional buttons to move the vertex precisely.\nEach tap moves the vertex by one pixel for ultimate precision.', TutorialStep.switchVertex : 'Tap the center button to switch between different vertices.\nCycle through all four corners of your quadrilateral.', TutorialStep.dragDPadPanel : 'Hold and drag the center of the D-pad panel to reposition it.\nPlace the controls wherever they feel most comfortable.', TutorialStep.completed : 'Congratulations! You\'ve mastered all the annotation features.\nYou\'re now ready to create precise quadrilateral annotations.'}, Map<TutorialStep, double> stepSpotlightPadding = const {TutorialStep.dragVertex : 20.0, TutorialStep.longPressVertex : 20.0, TutorialStep.doubleTapVertex : 20.0, TutorialStep.useDPad : 0.0, TutorialStep.switchVertex : 0.0, TutorialStep.dragDPadPanel : 0.0}}) -
构造函数
const
Properties
- autoStart → bool
-
是否自动开始引导
final
- connectionLineLength → double
-
连接线长度
final
- enabled → bool
-
是否启用引导
final
- enablePulseAnimation → bool
-
是否启用脉冲动画
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- highlightBorderColor → Color
-
高亮边框颜色
final
- highlightBorderWidth → double
-
高亮边框宽度
final
- hintBackgroundColor → Color
-
引导提示背景颜色
final
- hintBorderRadius → double
-
引导提示圆角半径
final
- hintContainerMargin → double
-
引导提示容器边距(距离屏幕边缘的距离)
final
- hintEstimatedHeight → double
-
引导提示容器预估高度(用于位置计算)
final
- hintPadding → EdgeInsets
-
引导提示内边距
final
- hintStyle → TextStyle
-
引导提示样式
final
- iconSize → double
-
图标尺寸
final
- iconToTextDistance → double
-
图标到文本的间距
final
- lineToIconDistance → double
-
连接线到图标的间距
final
- overlayColor → Color
-
遮罩颜色
final
- pulseAnimationDuration → Duration
-
脉冲动画持续时间
final
- pulseColor → Color
-
脉冲动画颜色
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skipButtonMargin → double
-
跳过按钮距离屏幕边缘的距离
final
- skipButtonStyle → ButtonStyle?
-
跳过按钮样式
final
- skipButtonText → String
-
跳过按钮文本
final
- spotlightAnimationDuration → Duration
-
聚光灯动画持续时间
final
- spotlightPadding → double
-
聚光灯边距(在实际内容基础上增加的大小)
final
- startDelay → Duration
-
引导开始的延迟时间
final
- stepInterval → Duration
-
引导步骤之间的间隔时间
final
-
stepSpotlightPadding
→ Map<
TutorialStep, double> -
每个步骤的聚光灯边距
final
-
stepTexts
→ Map<
TutorialStep, String> -
每个步骤的引导文本
final
Methods
-
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