File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 5
5
- Fixed [ #503 ] ( https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/503 ) - Cursor
6
6
not changing to click mode when it is hovering over the clickable widgets provided by this
7
7
package.
8
+ - Fixed [ #506 ] ( https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/506 ) - Timer
9
+ was not canceling when tapped on ` TooltipActionButton ` which may cause issue when ` autoPlay ` is ON.
8
10
9
11
## [ 4.0.1]
10
12
- Fixed [ #493 ] ( https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/493 ) - ShowCase.withWidget not showing issue
Original file line number Diff line number Diff line change @@ -609,6 +609,9 @@ class _ShowcaseState extends State<Showcase> {
609
609
Duration (seconds: showCaseWidgetState.autoPlayDelay.inSeconds),
610
610
_nextIfAny);
611
611
}
612
+ } else if (timer? .isActive ?? false ) {
613
+ timer? .cancel ();
614
+ timer = null ;
612
615
}
613
616
}
614
617
@@ -651,6 +654,13 @@ class _ShowcaseState extends State<Showcase> {
651
654
return widget.child;
652
655
}
653
656
657
+ @override
658
+ void dispose () {
659
+ timer? .cancel ();
660
+ timer = null ;
661
+ super .dispose ();
662
+ }
663
+
654
664
void initRootWidget () {
655
665
WidgetsBinding .instance.addPostFrameCallback ((_) {
656
666
if (! mounted) return ;
You can’t perform that action at this time.
0 commit comments