Add some examples of widgets that support visual density (#81932)

This commit is contained in:
Greg Spencer 2021-05-07 15:49:01 -07:00 committed by GitHub
parent 094179e82d
commit dd33283a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2095,6 +2095,22 @@ class _FifoCache<K, V> {
/// 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