mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Update MaterialType.canvas documentation.
While the documentation for MaterialType.canvas described it as an infinite shape. The implementation has been clipping it to the bounding rectangle for a while. And it is already used in the wild as a rectangular piece. So we just update the documentation to match that.
This commit is contained in:
parent
b79f4e319d
commit
b40c112e22
|
@ -22,7 +22,7 @@ typedef Rect RectCallback();
|
|||
/// * [Material], in particular [Material.type]
|
||||
/// * [kMaterialEdges]
|
||||
enum MaterialType {
|
||||
/// Infinite extent using default theme canvas color.
|
||||
/// Rectangle using default theme canvas color.
|
||||
canvas,
|
||||
|
||||
/// Rounded edges, card theme color.
|
||||
|
|
Loading…
Reference in a new issue