Skip to content

Commit 7492306

Browse files
blerouxreidbaker
authored andcommitted
Document DropdownMenu showTrailingIcon and decorationBuilder interaction (flutter#177488)
## Description This PR adds some documentation to `DropdownMenu.showTrailingIcon` in relation to `DropdownMenu.decorationBuilder`. ## Context See flutter#176264 (comment) ## Tests Documentation only.
1 parent 7c03574 commit 7492306

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/flutter/lib/src/material/dropdown_menu.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,16 @@ class DropdownMenu<T extends Object> extends StatefulWidget {
260260
/// If [showTrailingIcon] is false, the trailing icon will not be shown.
261261
final Widget? trailingIcon;
262262

263-
/// Specifies if the [DropdownMenu] should show a [trailingIcon].
263+
/// Specifies if the [DropdownMenu] should show the [trailingIcon].
264264
///
265265
/// If [trailingIcon] is set, [DropdownMenu] will use that trailing icon,
266266
/// otherwise a default trailing icon will be created.
267267
///
268268
/// If [showTrailingIcon] is false, [trailingIconFocusNode] must be null.
269269
///
270+
/// If a value is provided for [decorationBuilder] and the resulting [InputDecoration.suffixIcon]
271+
/// is not null, [showTrailingIcon] has no effect.
272+
///
270273
/// Defaults to true.
271274
final bool showTrailingIcon;
272275

0 commit comments

Comments
 (0)