After downloading this source code. I tried running to test. But it's not running because of some errors. Please let me know how to fix it. Please refer below messages.
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/fade_scale_transition.dart:266:29: Error: 'decelerateEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
).chain(CurveTween(curve: decelerateEasing));
^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:392:12: Error: 'decelerateEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
curve: decelerateEasing,
^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:398:29: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
).chain(CurveTween(curve: standardEasing));
^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:403:29: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
).chain(CurveTween(curve: standardEasing));
^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:412:35: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
).chain(CurveTween(curve: standardEasing));
^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:426:35: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
).chain(CurveTween(curve: standardEasing));
^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:465:12: Error: 'accelerateEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
curve: accelerateEasing,
^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:471:29: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
).chain(CurveTween(curve: standardEasing));
^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:476:29: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
).chain(CurveTween(curve: standardEasing));
^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:485:35: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
).chain(CurveTween(curve: standardEasing));
^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:502:35: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'.
).chain(CurveTween(curve: standardEasing));
^^^^^^^^^^^^^^
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.
Upgrading version of "animations" package (it is provided in flutter itself) worked for me.
I added []((https://pub.dev/packages/animations) dependency in pubspec.yaml
Hi there.
After downloading this source code. I tried running to test. But it's not running because of some errors. Please let me know how to fix it. Please refer below messages.
Launching lib\main.dart on Android SDK built for x86 in debug mode... Running Gradle task 'assembleDebug'... ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/fade_scale_transition.dart:266:29: Error: 'decelerateEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. ).chain(CurveTween(curve: decelerateEasing)); ^^^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:392:12: Error: 'decelerateEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. curve: decelerateEasing, ^^^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:398:29: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. ).chain(CurveTween(curve: standardEasing)); ^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:403:29: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. ).chain(CurveTween(curve: standardEasing)); ^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:412:35: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. ).chain(CurveTween(curve: standardEasing)); ^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:426:35: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. ).chain(CurveTween(curve: standardEasing)); ^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:465:12: Error: 'accelerateEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. curve: accelerateEasing, ^^^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:471:29: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. ).chain(CurveTween(curve: standardEasing)); ^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:476:29: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. ).chain(CurveTween(curve: standardEasing)); ^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:485:35: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. ).chain(CurveTween(curve: standardEasing)); ^^^^^^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/animations-1.0.0+5/lib/src/shared_axis_transition.dart:502:35: Error: 'standardEasing' is imported from both 'package:flutter/src/material/curves.dart' and 'package:animations/src/utils/curves.dart'. ).chain(CurveTween(curve: standardEasing)); ^^^^^^^^^^^^^^
FAILURE: Build failed with an exception.
Where: Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 997
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
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 26s Exception: Gradle task assembleDebug failed with exit code 1