From af63732deff0df8ebd108a44d932d836d3e64443 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Thu, 29 Mar 2018 00:04:47 -0400 Subject: [PATCH] Support `Path.addCircle` (#4783) * add Path.addCircle * docs formatting * revert path.cc/path.h; remove addCircle and update docs on addOval * add missing file. --- AUTHORS | 1 + lib/ui/painting.dart | 3 +++ 2 files changed, 4 insertions(+) diff --git a/AUTHORS b/AUTHORS index 649be0fcbe92a..5fdf752a2e376 100644 --- a/AUTHORS +++ b/AUTHORS @@ -7,3 +7,4 @@ Google Inc. Jim Simon Ali Bitek Jacob Greenfield +Dan Field diff --git a/lib/ui/painting.dart b/lib/ui/painting.dart index d69314bbb7659..9ee3ef39a2597 100644 --- a/lib/ui/painting.dart +++ b/lib/ui/painting.dart @@ -1513,6 +1513,9 @@ class Path extends NativeFieldWrapperClass2 { /// Adds a new subpath that consists of a curve that forms the /// ellipse that fills the given rectangle. + /// + /// To add a circle, pass an appropriate rectangle as `oval`. [Rect.fromCircle] + /// can be used to easily describe the circle's center [Offset] and radius. void addOval(Rect oval) { assert(_rectIsValid(oval)); _addOval(oval.left, oval.top, oval.right, oval.bottom);