image anim patch

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-15 19:53:52 +08:00
parent 04b8d92ff7
commit 6310a4ffaf
4 changed files with 18 additions and 5 deletions

View File

@@ -390,9 +390,7 @@ class _ImageState extends State<Image> with WidgetsBindingObserver {
void didChangeDependencies() {
_resolveImage();
_isPaused =
!TickerMode.valuesOf(context).enabled ||
(MediaQuery.maybeDisableAnimationsOf(context) ?? false);
_isPaused = !TickerMode.valuesOf(context).enabled;
if (_isPaused && _frameNumber != null) {
_stopListeningToStream(keepStreamAlive: true);