@@ -62,20 +62,20 @@ class ShowcaseView {
62
62
/// options like auto-play, animation, and many more.
63
63
ShowcaseView .register ({
64
64
this .scope = Constants .defaultScope,
65
- this .onFinish,
66
65
this .onStart,
66
+ this .onFinish,
67
67
this .onComplete,
68
68
this .onDismiss,
69
+ this .enableShowcase = true ,
69
70
this .autoPlay = false ,
70
71
this .autoPlayDelay = Constants .defaultAutoPlayDelay,
71
72
this .enableAutoPlayLock = false ,
72
- this .blurValue = 0 ,
73
- this .scrollDuration = Constants .defaultScrollDuration,
74
- this .disableMovingAnimation = false ,
75
- this .disableScaleAnimation = false ,
76
73
this .enableAutoScroll = false ,
74
+ this .scrollDuration = Constants .defaultScrollDuration,
77
75
this .disableBarrierInteraction = false ,
78
- this .enableShowcase = true ,
76
+ this .disableScaleAnimation = false ,
77
+ this .disableMovingAnimation = false ,
78
+ this .blurValue = 0 ,
79
79
this .globalTooltipActionConfig,
80
80
this .globalTooltipActions,
81
81
this .globalFloatingActionWidget,
@@ -263,10 +263,6 @@ class ShowcaseView {
263
263
if (! _mounted) return ;
264
264
265
265
_cleanupAfterSteps ();
266
- OverlayManager .instance.update (
267
- show: isShowcaseRunning,
268
- scope: scope,
269
- );
270
266
}
271
267
272
268
/// Cleans up resources when unregistering the showcase view.
@@ -321,7 +317,7 @@ class ShowcaseView {
321
317
_ids = widgetIds;
322
318
_activeWidgetId = 0 ;
323
319
_onStart ();
324
- // OverlayManager.instance.update(show: isShowcaseRunning, scope: scope);
320
+ OverlayManager .instance.update (show: isShowcaseRunning, scope: scope);
325
321
} else {
326
322
Future .delayed (delay, () => _startShowcase (Duration .zero, widgetIds));
327
323
}
@@ -344,12 +340,13 @@ class ShowcaseView {
344
340
(_) {
345
341
if (! _mounted) return ;
346
342
_activeWidgetId = id;
347
- _onStart ();
343
+
348
344
if (_activeWidgetId! >= _ids! .length) {
349
345
_cleanupAfterSteps ();
350
346
onFinish? .call ();
347
+ } else {
348
+ _onStart ();
351
349
}
352
- OverlayManager .instance.update (show: isShowcaseRunning, scope: scope);
353
350
},
354
351
);
355
352
}
@@ -418,7 +415,7 @@ class ShowcaseView {
418
415
await firstController? .scrollIntoView ();
419
416
} else {
420
417
for (var i = 0 ; i < controllerLength; i++ ) {
421
- controllers[i].startShowcase (shouldUpdateOverlay: i == 0 );
418
+ controllers[i].setupShowcase (shouldUpdateOverlay: i == 0 );
422
419
}
423
420
}
424
421
}
@@ -468,6 +465,7 @@ class ShowcaseView {
468
465
void _cleanupAfterSteps () {
469
466
_ids = _activeWidgetId = null ;
470
467
_cancelTimer ();
468
+ OverlayManager .instance.update (show: isShowcaseRunning, scope: scope);
471
469
}
472
470
473
471
@override
0 commit comments