Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3a45ba4

Browse files
committed
added TODO with non-linear interpolation with github ticket
1 parent 2a51b57 commit 3a45ba4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shell/platform/darwin/ios/framework/Source/FlutterViewController.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
* Compute the interpolated value under linear interpolation.
4949
*/
5050
CGFloat FLTLinearInterpolatedValue(double progress, CGFloat from, CGFloat to, CGFloat scale) {
51+
// TODO(hellohuanlin): consider non-linear interpolation to further reduce rotation distortion.
52+
// See: https://github.com/flutter/flutter/issues/123248
5153
NSCAssert(progress >= 0 && progress <= 1, @"progress must be between 0 and 1");
5254
return (from * (1 - progress) + to * progress) * scale;
5355
}

0 commit comments

Comments
 (0)