Skip to content

Commit

Permalink
Support Path.addCircle (flutter#4783)
Browse files Browse the repository at this point in the history
* add Path.addCircle

* docs formatting

* revert path.cc/path.h; remove addCircle and update docs on addOval

* add missing file.
  • Loading branch information
dnfield authored and Hixie committed Mar 29, 2018
1 parent 564c6a5 commit af63732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Google Inc.
Jim Simon <[email protected]>
Ali Bitek <[email protected]>
Jacob Greenfield <[email protected]>
Dan Field <[email protected]>
3 changes: 3 additions & 0 deletions lib/ui/painting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit af63732

Please sign in to comment.