切换镜像语言,属性GradientDirection.Left没有变为GradientDirection.Right
Row()
.size({ width: ‘100%’, height: 50 })
.linearGradient({
direction: GradientDirection.Left,
colors: [[this.getColorString(this.bottomColorInfo.mainColor, 0), 0.0],
[this.getColorString(this.bottomColorInfo.mainColor, 1), 1.0]]
})
linearGradient不用适配,Left就是Left的方向,它不是start。应用可以自己判断RTL决定显示的角度