flutter/packages
Bruno Leroux 7727ff46cc
Add DropdownButton.menuWidth (#148125)
## Description

This PRs add a new parameter to `DropdownButton` which allows to set the menu width.
This can be useful when `DropdownButton.selectedItemBuilder` is provided and builds small items, see https://github.com/flutter/flutter/issues/133267.

I’m not fond of adding new property, especially for a widget which is supposed to be replaced on M3, but in this case it might makes sense because it is a way to not break existing code while addressing a legitimate issue.

## Related Issue

Fixes https://github.com/flutter/flutter/issues/133267.

## Tests

Adds 1 test.
2024-05-21 19:15:21 +00:00
..
flutter Add DropdownButton.menuWidth (#148125) 2024-05-21 19:15:21 +00:00
flutter_driver Reland "if chains → switch expressions" (#148634) 2024-05-20 17:43:00 +00:00
flutter_goldens Remove hidden dependencies on LocalProcessManager (#148096) 2024-05-21 16:59:16 +00:00
flutter_localizations switch statement cleanup (#148382) 2024-05-16 17:16:06 -07:00
flutter_test SelectionArea's selection should not be cleared on loss of window focus (#148067) 2024-05-20 23:45:08 +00:00
flutter_tools Add a migrator to remove FlutterMultiDexApplication.java (#148515) 2024-05-21 18:53:53 +00:00
flutter_web_plugins Unpin DDS and roll pub packages (#147925) 2024-05-08 10:35:28 +01:00
fuchsia_remote_debug_protocol Don't pin package:macros (#148087) 2024-05-09 16:28:49 -07:00
integration_test switch statement cleanup (#148382) 2024-05-16 17:16:06 -07:00
analysis_options.yaml