@@ -51,12 +51,6 @@ class Showcase extends StatefulWidget {
5151 /// Represents subject line of target widget
5252 final String ? title;
5353
54- /// Title text alignment with in tooltip widget
55- ///
56- /// Defaults to [TextAlign.start]
57- /// To understand how text is aligned, check [TextAlign]
58- final TextAlign titleTextAlign;
59-
6054 /// Represents summary description of target widget
6155 final String ? description;
6256
@@ -178,12 +172,6 @@ class Showcase extends StatefulWidget {
178172 /// Default to [BorderRadius.circular(8)]
179173 final BorderRadius ? tooltipBorderRadius;
180174
181- /// Description text alignment with in tooltip widget
182- ///
183- /// Defaults to [TextAlign.start]
184- /// To understand how text is aligned, check [TextAlign]
185- final TextAlign descriptionTextAlign;
186-
187175 /// if `disableDefaultTargetGestures` parameter is true
188176 /// onTargetClick, onTargetDoubleTap, onTargetLongPress and
189177 /// disposeOnTap parameter will not work
@@ -257,16 +245,28 @@ class Showcase extends StatefulWidget {
257245 /// Defaults to 7.
258246 final double toolTipSlideEndDistance;
259247
260- /// Title alignment within tooltip widget
248+ /// Title widget alignment within tooltip widget
261249 ///
262250 /// Defaults to [Alignment.center]
263251 final AlignmentGeometry titleAlignment;
264252
265- /// Description alignment within tooltip widget
253+ /// Title text alignment with in tooltip widget
254+ ///
255+ /// Defaults to [TextAlign.start]
256+ /// To understand how text is aligned, check [TextAlign]
257+ final TextAlign titleTextAlign;
258+
259+ /// Description widget alignment within tooltip widget
266260 ///
267261 /// Defaults to [Alignment.center]
268262 final AlignmentGeometry descriptionAlignment;
269263
264+ /// Description text alignment with in tooltip widget
265+ ///
266+ /// Defaults to [TextAlign.start]
267+ /// To understand how text is aligned, check [TextAlign]
268+ final TextAlign descriptionTextAlign;
269+
270270 /// Defines the margin for the tooltip.
271271 /// Which is from 0 to [toolTipSlideEndDistance] .
272272 ///
@@ -285,20 +285,20 @@ class Showcase extends StatefulWidget {
285285 final TooltipActionConfig ? tooltipActionConfig;
286286
287287 /// Highlights a specific widget on the screen with an informative tooltip.
288-
288+ ///
289289 /// This widget helps you showcase specific parts of your UI by drawing an
290290 /// overlay around it and displaying a description. You can customize the
291291 /// appearance and behavior of the showcase and tooltip for a seamless user
292292 /// experience.
293-
293+ ///
294294 /// **Required arguments:**
295295 ///
296296 /// - `key` : A unique key for this Showcase widget.
297297 /// - `description` : A description of the widget being showcased.
298298 /// - `child` : The widget you want to highlight.
299-
299+ ///
300300 /// **Optional arguments:**
301-
301+ ///
302302 /// **Tooltip:**
303303 /// - `title` : An optional title for the tooltip.
304304 /// - `titleAlignment` : Alignment of the title text within the tooltip (defaults to start).
@@ -310,20 +310,20 @@ class Showcase extends StatefulWidget {
310310 /// - `tooltipPadding` : Padding around the content inside the tooltip.
311311 /// - `onToolTipClick` : A callback function called when the user clicks the tooltip.
312312 /// - `tooltipBorderRadius` : The border radius of the tooltip (defaults to 8dp).
313-
313+ ///
314314 /// **Highlight:**
315315 /// - `targetShapeBorder` : The border to draw around the showcased widget (defaults to a rounded rectangle).
316316 /// - `targetPadding` : Padding around the showcased widget (defaults to none).
317317 /// - `showArrow` : Whether to show an arrow pointing to the showcased widget (defaults to true).
318-
318+ ///
319319 /// **Animations:**
320320 /// - `movingAnimationDuration` : Duration of the animation when moving the tooltip (defaults to 2 seconds).
321321 /// - `disableMovingAnimation` : Disables the animation when moving the tooltip.
322322 /// - `disableScaleAnimation` : Disables the animation when scaling the tooltip.
323323 /// - `scaleAnimationDuration` : Duration of the animation when scaling the tooltip (defaults to 300 milliseconds).
324324 /// - `scaleAnimationCurve` : The curve used for the scaling animation (defaults to ease-in).
325325 /// - `scaleAnimationAlignment` : The alignment point for the scaling animation.
326-
326+ ///
327327 /// **Interactions:**
328328 /// - `onTargetClick` : A callback function called when the user clicks the showcased widget.
329329 /// - `disposeOnTap` : Whether to dispose of the showcase after a tap on the showcased widget (requires `onTargetClick` ).
@@ -332,7 +332,7 @@ class Showcase extends StatefulWidget {
332332 /// - `disableDefaultTargetGestures` : Disables default gestures on the target widget (panning, zooming).
333333 /// - `onBarrierClick` : A callback function called when the user clicks outside the showcase overlay.
334334 /// - `disableBarrierInteraction` : Disables user interaction with the area outside the showcase overlay.
335-
335+ ///
336336 /// **Advanced:**
337337 /// - `container` : A custom widget to use as the tooltip instead of the default one.
338338 /// - `overlayColor` : Color of the showcase overlay (defaults to black with 75% opacity).
@@ -344,7 +344,7 @@ class Showcase extends StatefulWidget {
344344 /// - `toolTipMargin` : The margin around the tooltip (defaults to 14dp).
345345 /// - `tooltipActions` : A list of custom actions (widgets) to display within the tooltip.
346346 /// - `tooltipActionConfig` : Configuration options for custom tooltip actions.
347-
347+ ///
348348 /// **Assertions:**
349349 ///
350350 /// - `overlayOpacity` must be between 0.0 and 1.0.
0 commit comments