Goggi
Goggi

Reputation: 42

AnimatedRotation not supported by flutter

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!

Upvotes: 0

Views: 79

Answers (1)

adamu_fura
adamu_fura

Reputation: 819

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.

Upvotes: 2

Related Questions