vipulasri / Serene

Serene is a white noise app developed with Flutter. It helps you meditate, sleep better, focus, relax and be calm.
GNU General Public License v3.0
100 stars 15 forks source link

Please let me know how to fix it - .chain(CurveTween(curve: decelerateEasing)); #1

Closed desunny closed 3 years ago

desunny commented 3 years ago

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.

BUILD FAILED in 26s Exception: Gradle task assembleDebug failed with exit code 1

desunny commented 3 years ago

I solved it with below.

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