gskinner / gskinner/flutter_animate

Allow onInit to prevent play

Open
#127 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
1.1k
Forks
103
PR merge metrics
No merged PRs in 30d

Description

It could be useful to allow `onInit` handlers to return a boolean to override `autoPlay`.

``` dart
foo.animate(
onInit: (c) {
// do some stuff
return false; // prevent autoplay
}
).fadeIn()
```

Maybe have the return type be `bool?` to allow for backwards compatibility.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.