AnimatedRotation not supported by flutter

Issue

Screenshot of Problem

I worked on this about a year ago and came back to this now. I updated my flutter version and it seems that AnimatedRotation is not supported anymore. I imported all the packages but still, it won’t work.

Do you have an alternative for me?
Thank you!

Solution

There is a name conflict in your imports, so you have to specify what library you really want to use for unique identification to the compiler. to solve that flutter provide alias as hide and show

solution

import 'package:animated_rotation/animated_rotation.dart' as AnimatedRotation

You can hide the other class you don’t really want. Now the compiler knows exactly which package it should use.

Answered By – programmer

Answer Checked By – Marie Seifert (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *