Unverified Commit 5a866a03 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Clarify the whole "CustomPainters default to Size.zero" thing. (#130624)

Fixes https://github.com/flutter/flutter/issues/52707
parent a1db2fe3
...@@ -600,11 +600,13 @@ class BackdropFilter extends SingleChildRenderObjectWidget { ...@@ -600,11 +600,13 @@ class BackdropFilter extends SingleChildRenderObjectWidget {
/// `setState` or `markNeedsLayout` during the callback (the layout for this /// `setState` or `markNeedsLayout` during the callback (the layout for this
/// frame has already happened). /// frame has already happened).
/// ///
/// Custom painters normally size themselves to their child. If they do not have /// Custom painters normally size themselves to their [child]. If they do not
/// a child, they attempt to size themselves to the [size], which defaults to /// have a child, they attempt to size themselves to the specified [size], which
/// [Size.zero]. [size] must not be null. /// defaults to [Size.zero]. The parent [may enforce constraints on this
/// size](https://docs.flutter.dev/ui/layout/constraints).
/// ///
/// [isComplex] and [willChange] are hints to the compositor's raster cache. /// The [isComplex] and [willChange] properties are hints to the compositor's
/// raster cache.
/// ///
/// {@tool snippet} /// {@tool snippet}
/// ///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment