Skip to content

Commit

Permalink
Updated CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
imaNNeo committed Dec 14, 2020
1 parent 30dc94e commit 7992f73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ best solution.

## Drawing architecture
We have a *_chart_painter.dart class per each chart type. It draws elements into the Canvas.
Because we wanted to test draw functions we made the CanvasWrapper class.
CanvasWrapper class holds a canvas and all draw functions proxied through it.
You should use it in your draw functions, Instead of direct accessing to canvas.
It makes writing tests for draw functions possible.
We made the CanvasWrapper class, because we wanted to test draw functions.
CanvasWrapper class holds a canvas and all draw functions proxies through it.
You should use it for drawing on the canvas, Instead of direct accessing to canvas.
It makes draw functions testable.


## Checking Your Code's Quality
Expand Down

0 comments on commit 7992f73

Please sign in to comment.