Idean/Flutter-Neumorphic

Error: 'AnimatedScale' is imported from both

shalom-aviv opened this issue · 16 comments

Have next error when run build for ios

/flutter_neumorphic-3.1.0/lib/src/widget/switch.dart:167:20: 
Error: 
  'AnimatedScale' is imported 
from both 'package:flutter/src/widgets/implicit_animations.dart'  and
 'package:flutter_neumorphic/src/widget/animation/animated_scale.dart'.
Flutter 2.4.0-4.0.pre • channel dev • https://github.com/flutter/flutter.git
Framework • revision cc00e7e6bc (4 days ago) • 2021-07-11 18:21:02 -0400
Engine • revision ed25e8f01e
Tools • Dart 2.14.0 (build 2.14.0-301.0.dev)

Just started getting this error as well. Not sure how to fix.

Change all the instances of AnimatedScale in this package to something else and it will work

Hi,

As much as it sounds that simple, I think you might want to run some tests on this package against the Flutter Master & Stable channel. I hadn't touched my app since early July, it was working perfectly with this UI..

Then yesterday happened .. Everything including my building tools has broken on me..

The weirdest thing is, I'm not even using an 'animated scale' let alone importing it... so why is it suddenly flagging up in our code?

Can you please look into this, otherwise I might have to rip piece by piece of this UI out and that would be a shame :(

Just to Add a Note on this, I even tried removing the imports from those files and cleaning the build that did not work.
I was sitting on the 'Master Channel', then I switched to 'Stable' and 'Upgraded' and magically, the error has disappeared...

I would recommend that if your team could please look into this as maybe when flutter releases their next 'package', this is an early warning that it will break completly. Hope this helps!

hahah magically,
Let me see if I can get someone to fix this. Thanks

roked commented

Just to Add a Note on this, I even tried removing the imports from those files and cleaning the build that did not work.
I was sitting on the 'Master Channel', then I switched to 'Stable' and 'Upgraded' and magically, the error has disappeared...

I would recommend that if your team could please look into this as maybe when flutter releases their next 'package', this is an early warning that it will break completly. Hope this helps!

Easy fix!!

flutter channel stable
flutter upgrade

Just coming back to this, I've had to switch back to the master channel of Flutter.. unfortunately, the error does pop up again, is there a way we can get this fixed on master and how long could it take?

Same problem, waiting for fix.

Do we know when this might happen for a fix, otherwise I might have to pull this entire package out of my app, which I won't be looking forward to doing :(

The same issue with the AnimatedScale widget, is it only fine using in the stable channel? 🥲

Realistically, I don't think this team will release another fix for this, because 'technically' it's already gone through master, dev, beta down to stable so, you either have to sit on Master until any issues are fixed on master passed back down onto Stable to get the fix for this.

seems like that flutter 2.5 does not fixed that

Meanwhile you can use the package like this:

  flutter_neumorphic:
    git:
      url: "https://github.com/alionour/Flutter-Neumorphic"

Meanwhile you can use the package like this:

  flutter_neumorphic:
    git:
      url: "https://github.com/alionour/Flutter-Neumorphic"

worked!! thanks a lot. :)

Fixed with 3.1.1. 🎉