disabled_animation_checker 0.0.1 copy "disabled_animation_checker: ^0.0.1" to clipboard
disabled_animation_checker: ^0.0.1 copied to clipboard

Plugin that check animation status on the platform

disabled_animation_checker #

Retrieve the system animation status to determine whether reduced animations are enabled or disabled.

Getting Started #

A simple usage example:

import 'package:disabled_animation_checker/disabled_animation_checker.dart';

final isEnabled = await _aAnimationCheckerPlugin.isAnimationDisabled();


// You can also use mixin
class _MyAppState extends State<MyApp>
    with WidgetsBindingObserver, AnimationDisabledObserverMixin<MyApp> {
  bool _isAnimationEnabled = false;

  @override
  void animationStatusChanged(bool isEnabled) {
    setState(() {
      _isAnimationEnabled = isEnabled;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Is animation disabled: $_isAnimationEnabled'),
        ),
      ),
    );
  }
}

Support Platform #

  • ✅ Android
  • ✅ iOS
0
likes
160
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

Plugin that check animation status on the platform

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on disabled_animation_checker

Packages that implement disabled_animation_checker