Repository navigation
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)e: OS-version specificAffects only some versions of the relevant operating systemAffects only some versions of the relevant operating systemengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.13Found to occur in 3.13Found to occur in 3.13has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
- On Android 12+ device disable animations from Settings > Accessibility > Remove animations.
- Run the app flutter run --release (does not matter if in release, profile or debug mode, we have this bug in live app also).
- Observe AccessibilityFeatures.disableAnimations flag is not set, animations are not removed.
- Put the app to backgound (do not close it), and change the "Remove animations" setting off and on again from Settings > Accessibility > Remove animations.
- Open app from recents, observe AccessibilityFeatures.disableAnimations flag is updated and set after few seconds and animations are disabled.
Expected results
App animations are disabled on Android 12+.
Actual results
Animations are not disabled.
Code sample
Code sample
import 'dart:ui';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Accessibility disableAnimations example',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const SlideAnimationDemo(),
);
}
}
class SlideAnimationDemo extends StatefulWidget {
const SlideAnimationDemo({super.key});
@override
State<SlideAnimationDemo> createState() => _SlideAnimationDemoState();
}
class _SlideAnimationDemoState extends State<SlideAnimationDemo>
with SingleTickerProviderStateMixin, WidgetsBindingObserver {
late AnimationController _animationController;
late Animation<Offset> _slideAnimation;
String features = '';
@override
void initState() {
super.initState();
WidgetsBinding.instance.addObserver(this);
_animationController = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 1000),
);
_slideAnimation = Tween<Offset>(
begin: const Offset(-1.0, 0.0),
end: Offset.zero,
).animate(CurvedAnimation(
parent: _animationController,
curve: Curves.easeInOut,
));
features = PlatformDispatcher.instance.accessibilityFeatures.toString();
}
@override
void dispose() {
_animationController.dispose();
WidgetsBinding.instance.removeObserver(this);
super.dispose();
}
void _playAnimation() {
if (_animationController.status == AnimationStatus.completed) {
_animationController.reverse();
} else {
_animationController.forward();
}
}
@override
void didChangeAccessibilityFeatures() {
final newFeatures =
PlatformDispatcher.instance.accessibilityFeatures.toString();
debugPrint("didChangeAccessibilityFeatures $newFeatures");
setState(() {
features = newFeatures;
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Slide animation demo'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const SizedBox(height: 20),
Text(features),
const SizedBox(height: 20),
SlideTransition(
position: _slideAnimation,
child: Container(
width: 100,
height: 100,
color: Colors.red,
),
),
const SizedBox(height: 20),
ElevatedButton(
onPressed: _playAnimation,
child: const Text('Animate'),
),
],
),
),
);
}
}
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.19044.3086], locale et-EE)
• Flutter version 3.10.6 on channel stable at C:\Users\sande\fvm\versions\3.10.6
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f468f3366c (8 days ago), 2023-07-12 15:19:05 -0700
• Engine revision cdbeda788a
• Dart version 3.0.6
• DevTools version 2.23.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at C:\Users\sande\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.2
• ANDROID_HOME = C:\Users\sande\AppData\Local\Android\sdk
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.3)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.2.32526.322
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2022.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
[√] IntelliJ IDEA Community Edition (version 2019.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
[√] IntelliJ IDEA Community Edition (version 2022.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.1.1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
[√] VS Code, 64-bit edition (version 1.80.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.68.0
[√] Connected device (4 available)
• Pixel 3 XL (mobile) • 8ABY0HG2L • android-arm64 • Android 12 (API 31)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19044.3086]
• Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.199
• Edge (web) • edge • web-javascript • Microsoft Edge 114.0.1823.55
[√] Network resources
• All expected network resources are available.
• No issues found!Reacted by Anton Stubenbord, Mosc, Steven Xu, khoadng, Aeluwas, Bruno D'Luka and Greg Price
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)e: OS-version specificAffects only some versions of the relevant operating systemAffects only some versions of the relevant operating systemengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.13Found to occur in 3.13Found to occur in 3.13has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Type
Projects
- StatusShow more project fieldsDone
Activity
danagbemava-nc commentedon Jul 20, 2023
Issue is reproducible using the code sample and steps outlined above.
I tested on a Pixel 7 running android 13 and a Nokia 6 running android 9.
On the Pixel 7, the bug reproduced as expected on both stable and master.
However, on the Nokia 6, everything worked just fine.
flutter doctor -v
sanderpensa commentedon Jul 25, 2023
I can confirm that on android 9 (Sony xz1 compact) it works as expected.
On Pixel 3XL (android 12), Pixel 5 (android 13) and Poco f4 (android 13) the issue is present.
gmackall commentedon Jul 27, 2023
note from android triage: @reidbaker to investigate further (determine if this is a regression or not).
2 remaining items
exscape commentedon Jun 13, 2024
Could someone please take a look at this? If the fix is really as simple as the above comments suggests, the fix itself is a 2-minute job; it's a shame for such a bug to cause issues for so many people for a year if not longer.
This flutter bug prevents me from using an app written in Flutter (though I would expect the same is true for MANY flutter apps, only I haven't used them yet).
reidbaker commentedon Jun 13, 2024
https://github.com/flutter/flutter/wiki/Issue-hygiene#when-will-my-bug-be-fixed
If you would like to have this issue fixed sooner you are welcome to submit a patch. See our contribution guide here https://github.com/flutter/flutter/blob/main/CONTRIBUTING.md
hakonber commentedon Jun 17, 2024
I have submitted a PR, mostly based on horsemankukka's comment above.
flutter-team-archive/engine#53428
It's my first Flutter PR, so I'm not sure how to request a review, but hopefully someone here can pass it on the right person(s).
Fix AccessibilityFeatures.disableAnimations flag on Android 12+ (#53428)
Image GIF pausing (#176492)
justinmc commentedon Nov 18, 2025
I think this issue can be closed now that flutter-team-archive/engine#53428 has merged to pass this through to MediaQuery, and #176492 has made Image respect that setting. If there's still work to do here let me know and I'll reopen!
Image GIF pausing (flutter#176492)
Image GIF pausing (flutter#176492)
github-actions commentedon Dec 3, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.