From a8fea4933148810d6cb7f3f6c7beb30ed3b3d03b Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 28 Aug 2022 18:57:13 -0400 Subject: [PATCH] Add arc diagrams to docs (flutter/engine#35757) --- engine/src/flutter/lib/ui/painting.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index 68b634a9df..cb7c2df5e0 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/lib/ui/painting.dart @@ -2567,6 +2567,10 @@ class Path extends NativeFieldWrapperClass1 { /// crosses the horizontal line that intersects the center of the /// rectangle and with positive angles going clockwise around the /// oval. + /// + /// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/path_add_arc.png) + /// + /// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/path_add_arc_ccw.png) void addArc(Rect oval, double startAngle, double sweepAngle) { assert(_rectIsValid(oval)); _addArc(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle); @@ -5002,6 +5006,8 @@ class Canvas extends NativeFieldWrapperClass1 { /// closed back to the center, forming a circle sector. Otherwise, the arc is /// not closed, forming a circle segment. /// + /// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/canvas_draw_arc.png) + /// /// This method is optimized for drawing arcs and should be faster than [Path.arcTo]. void drawArc(Rect rect, double startAngle, double sweepAngle, bool useCenter, Paint paint) { assert(_rectIsValid(rect));