Flutter 省道/颤振:创建后指定HSLColor的饱和度 目标
我想做以下几件事Flutter 省道/颤振:创建后指定HSLColor的饱和度 目标,flutter,dart,colors,hsl,Flutter,Dart,Colors,Hsl,我想做以下几件事 将颜色转换为HSLColor 自定义颜色的饱和度 最后将HSLColor转换回Color 问题 但事实证明,HSLColor的特性(包括饱和度)是最终的。 那么如何修改HSL颜色空间呢?HSL.withSaturation(…).toColor()HSL.withSaturation(…).toColor()
颜色
转换为HSLColor
李>
HSLColor
转换回Color
HSL.withSaturation(…).toColor()
HSL.withSaturation(…).toColor()