Skip to content

Commit 2116f1a

Browse files
committed
Remove reverse trick from example
1 parent 878a21a commit 2116f1a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

example/lib/main.dart

+1-10
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,7 @@ class _HomePageState extends State<HomePage> {
4343
Map<EdgeType, List<ControlPoint>> controlPointsPerEdge = {};
4444

4545
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;
46+
controlPointsPerEdge[edge] = _controlPoints;
5647
}
5748

5849
return Scaffold(

0 commit comments

Comments
 (0)