Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double' #6

Closed
cosminstoinescu opened this issue Jan 24, 2019 · 1 comment

Comments

@cosminstoinescu
Copy link

Please see the following error found in package:rubber/src/animation_controller.dart.

`'package:rubber/src/animation_controller.dart': error: line 355 pos 30:
file:///D:/Programing/FLUTTER/flutter/.pub-cache/hosted/pub.dartlang.org/rubber-0.2.5/lib/src/animation_controller.dart:355:30:

Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::double'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::double'.
final double launchSpeed = 7;
^
final double launchSpeed = 7;
^`

@aryzhov
Copy link
Contributor

aryzhov commented Jan 25, 2019

This can be closed as Flutter 1.0 is using Dart 2.1 which handles the conversion from int to double automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants