Flutter_Neumorphic Not working with flutter version 2.5.2
shaikhafzaal2 opened this issue · 16 comments
PS C:\Users\Dell G3-3500\Desktop\Internship Grow90\edu_app> flutter run
Using hardware rendering with device sdk gphone x86 arm. If you notice graphics artifacts, consider
enabling software rendering with "--enable-software-rendering".
Launching lib\main.dart on sdk gphone x86 arm in debug mode...
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_neumorphic-3.1.0/lib/src/widget/button.dart:200:14: Error: 'AnimatedScale' is imported from both 'package:flutter/src/widgets/implicit_animations.dart' and 'package:flutter_neumorphic/src/widget/animation/animated_scale.dart'.
child: AnimatedScale(
^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_neumorphic-3.1.0/lib/src/widget/switch.dart:167: 'package:flutter_neumorphic/src/widget/animation/animated_scale.dart'.
child: AnimatedScale(
^^^^^^^^^^^^^
FAILURE: Build failed with an exception.
-
Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005 -
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 58s
I am having the same issue
I am having the same issue
For now I have just downgraded my flutter version to 2.2.3 and its working Its not a solution tho
When will this issue be fixed?
I am having the same issue
#239 (comment) refer to this comment, I did this and it worked. Although it's not a good solution to go tinkering with the package code but for now we have no other option.
same error after flutter upgrade to 2.5.2
Also happening with me on flutter 2.5.2, and it worked fine after downgrading to flutter 2.2.3
Any progress on this ?
face same issue after upgrade,
for fix u can downgrade flutter or use fork like this, for me thats works
#flutter_neumorphic: instead use it from git
flutter_neumorphic:
git:
url: git://github.com/4uzhoy/Flutter-Neumorphic.git
ref: fix/#241
I downloaded the files, loaded it as a local widget library, changed the class name 'AnimatedScale' and all the references in the project, fixed some other issues and now works perfect in my app with the latest flutter version.
Thanks anyway.
I have the same issue and I used this solution, why is not update/merge the package and use this solution?
I am having the same issue
This should be working on the latest published version (3.1.1) could you please give it a try?
This should be already fixed in the latest version. Let me know if you experience any issue. Thank you!
I'm having the same issue with 3.10.6. which is the current latest version of Flutter SDK till July 2023.
I'm having the same issue with 3.10.6. which is the current latest version of Flutter SDK till July 2023.
did u found any solution ?