mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Use double rather than float
double is a built-in type in Dart. float isn't... TBR=eseidel@chromium.org Review URL: https://codereview.chromium.org/968293003
This commit is contained in:
parent
ff51816b5a
commit
610421048d
@ -47,7 +47,7 @@ void stopDots(event) {
|
||||
}
|
||||
|
||||
void runToTheCenter(event) {
|
||||
float radius = (5 + (95 * event.pressure));
|
||||
double radius = (5 + (95 * event.pressure));
|
||||
Element dot = whichDot(event);
|
||||
dot.style["transform"] = "translate(${event.x-radius}px,${event.y-radius}px)";
|
||||
dot.style["width"] = "${2 * radius}px";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user