From dd33283a57ca7ad57f649fca025780f9656fa8a1 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Fri, 7 May 2021 15:49:01 -0700 Subject: [PATCH] Add some examples of widgets that support visual density (#81932) --- .../flutter/lib/src/material/theme_data.dart | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/flutter/lib/src/material/theme_data.dart b/packages/flutter/lib/src/material/theme_data.dart index 8c52484c1ee..f835214faed 100644 --- a/packages/flutter/lib/src/material/theme_data.dart +++ b/packages/flutter/lib/src/material/theme_data.dart @@ -2095,6 +2095,22 @@ class _FifoCache { /// the list. For chips, it only affects the vertical size, not the horizontal /// size. /// +/// Here are some examples of widgets that respond to density changes: +/// +/// * [Checkbox] +/// * [Chip] +/// * [ElevatedButton] +/// * [FlatButton] +/// * [IconButton] +/// * [InputDecorator] (which gives density support to [TextField], etc.) +/// * [ListTile] +/// * [MaterialButton] +/// * [OutlineButton] +/// * [OutlinedButton] +/// * [Radio] +/// * [RawMaterialButton] +/// * [TextButton] +/// /// See also: /// /// * [ThemeData.visualDensity], where this property is used to specify the base