| OLD | NEW |
| 1 Sky Rendering | 1 Sky Rendering |
| 2 ============= | 2 ============= |
| 3 | 3 |
| 4 The Sky render tree is a low-level layout and painting system based on a | 4 The Sky render tree is a low-level layout and painting system based on a |
| 5 retained tree of objects that inherit from [`RenderObject`](object.dart). Most | 5 retained tree of objects that inherit from [`RenderObject`](object.dart). Most |
| 6 developers using Sky will not need to interact directly with the rendering tree. | 6 developers using Sky will not need to interact directly with the rendering tree. |
| 7 Instead, most developers should use [Sky widgets](../widgets/README.md), which | 7 Instead, most developers should use [Sky widgets](../widgets/README.md), which |
| 8 are built using the render tree. | 8 are built using the render tree. |
| 9 | 9 |
| 10 Overview | 10 Overview |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 Performance rules of thumb | 357 Performance rules of thumb |
| 358 -------------------------- | 358 -------------------------- |
| 359 | 359 |
| 360 * Avoid using transforms where mere maths would be sufficient (e.g. | 360 * Avoid using transforms where mere maths would be sufficient (e.g. |
| 361 draw your rectangle at x,y rather than translating by x,y and | 361 draw your rectangle at x,y rather than translating by x,y and |
| 362 drawing it at 0,0). | 362 drawing it at 0,0). |
| 363 | 363 |
| 364 * Avoid using save/restore on canvases. | 364 * Avoid using save/restore on canvases. |
| 365 | 365 |
| 366 | 366 |
| 367 Useful debugging tools |
| 368 ---------------------- |
| 369 |
| 370 This is a quick way to dump the entire render tree to the console. |
| 371 This can be quite useful in figuring out exactly what is going on when |
| 372 working with the render tree. |
| 373 |
| 374 ```dart |
| 375 import 'package:sky/rendering/sky_binding.dart'; |
| 376 |
| 377 SkyBinding.instance.debugDumpRenderTree(); |
| 378 ``` |
| 379 |
| 380 |
| 367 Dependencies | 381 Dependencies |
| 368 ------------ | 382 ------------ |
| 369 | 383 |
| 370 * [`package:sky/base`](../base) | 384 * [`package:sky/base`](../base) |
| 371 * [`package:sky/mojo`](../mojo) | 385 * [`package:sky/mojo`](../mojo) |
| 372 * [`package:sky/animation`](../mojo) | 386 * [`package:sky/animation`](../mojo) |
| OLD | NEW |