Skip to content

Commit

Permalink
fix: null safety to start paused show
Browse files Browse the repository at this point in the history
  • Loading branch information
evan361425 committed Sep 9, 2023
1 parent f46497d commit 4bef289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/spotlight_ant.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class SpotlightAntState extends State<SpotlightAnt> {
if (paused && info.visibleFraction == 1.0) {
// no need to rebuild by setState since we are not changing UI.
paused = false;
SpotlightShow.of(context).start();
SpotlightShow.maybeOf(context)?.start();

// avoid edit callback collection in callback
await Future.delayed(Duration.zero);
Expand Down

0 comments on commit 4bef289

Please sign in to comment.