From 151204edf556364d2cf45eaad9b61ecceaea4264 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Thu, 29 Mar 2018 00:04:47 -0400 Subject: [PATCH] Support `Path.addCircle` (flutter/engine#4783) * add Path.addCircle * docs formatting * revert path.cc/path.h; remove addCircle and update docs on addOval * add missing file. --- engine/src/flutter/AUTHORS | 1 + engine/src/flutter/lib/ui/painting.dart | 3 +++ 2 files changed, 4 insertions(+) diff --git a/engine/src/flutter/AUTHORS b/engine/src/flutter/AUTHORS index 649be0fcbe..5fdf752a2e 100644 --- a/engine/src/flutter/AUTHORS +++ b/engine/src/flutter/AUTHORS @@ -7,3 +7,4 @@ Google Inc. Jim Simon Ali Bitek Jacob Greenfield +Dan Field diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index d69314bbb7..9ee3ef39a2 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/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);