-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detailed RenderBox and RenderObject docs #6745
Conversation
/// | ||
/// #### Using RenderShiftedBox | ||
/// | ||
/// By default, a [RenderShiftedBox] acts much like a [R]enderProxyBox but |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[R]
?
/// | ||
/// @override | ||
/// void performResize() { | ||
/// size = constraints.biggest; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to recommend biggest? That will blow up with infinite constraints.
/// | ||
/// To describe how a render box paints, implement the [paint] method. It is | ||
/// given a [PaintingContext] object and an [Offset]. The offset specifies the | ||
/// position that the box should consider as its top left corner. The painting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its top left corner...
in the coordinate system of context.canvas
/// 1. creation (constructor runs) | ||
/// 2. properties get modified | ||
/// 3. layout | ||
/// 4. paint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantics?
/// | ||
/// ### Lifecycle | ||
/// | ||
/// The lifecycle of a [RenderObject] is roughly as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about attach/detach?
Made fixes, will land when Travis agrees. |
No description provided.