Skip to content

Commit

Permalink
fix: int not double (#195)
Browse files Browse the repository at this point in the history
Co-authored-by: jinzhanwei3 <jinzhanwei3@jd.com>
  • Loading branch information
layxyer and jinzhanwei3 authored Mar 8, 2020
1 parent c410d09 commit 643a3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/panel2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class __FijkPanel2State extends State<_FijkPanel2> {
currentValue = currentValue.clamp(0, duration);

double bufferPos = dura2double(_bufferPos);
bufferPos = bufferPos.clamp(0, duration);
bufferPos = bufferPos.clamp(0.0, duration);

return Padding(
padding: EdgeInsets.only(left: 3),
Expand Down

0 comments on commit 643a3c2

Please sign in to comment.