From b40c112e22b43c62227866e34099bc3df6f2d91a Mon Sep 17 00:00:00 2001 From: Amir Hardon Date: Fri, 2 Feb 2018 14:43:58 -0800 Subject: [PATCH] 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. --- packages/flutter/lib/src/material/material.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/material/material.dart b/packages/flutter/lib/src/material/material.dart index b5269cd102f..59145165830 100644 --- a/packages/flutter/lib/src/material/material.dart +++ b/packages/flutter/lib/src/material/material.dart @@ -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.