mcrovero / rubber

An elastic material bottom sheet implementation for Flutter.
BSD 2-Clause "Simplified" License
562 stars 88 forks source link

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

Closed cosminstoinescu closed 5 years ago

cosminstoinescu commented 5 years ago

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 commented 5 years ago

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