We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 878a21a commit 2116f1aCopy full SHA for 2116f1a
example/lib/main.dart
@@ -43,16 +43,7 @@ class _HomePageState extends State<HomePage> {
43
Map<EdgeType, List<ControlPoint>> controlPointsPerEdge = {};
44
45
for (var edge in _selectedEdges) {
46
- List<ControlPoint> controlPointsToUse = _controlPoints;
47
- if (edge == EdgeType.rightEdge || edge == EdgeType.bottomEdge) {
48
- controlPointsToUse = _controlPoints.map((cp) {
49
- return ControlPoint(
50
- position: 1.0 - cp.position,
51
- type: cp.type,
52
- );
53
- }).toList();
54
- }
55
- controlPointsPerEdge[edge] = controlPointsToUse;
+ controlPointsPerEdge[edge] = _controlPoints;
56
}
57
58
return Scaffold(
0 commit comments