@@ -286,30 +286,27 @@ class _DropdownMenuState<T> extends State<_DropdownMenu<T>> {
286
286
namesRoute: true ,
287
287
explicitChildNodes: true ,
288
288
label: localizations.popupMenuLabel,
289
- child: ClipRRect (
290
- borderRadius: widget.borderRadius ?? BorderRadius .zero,
291
- child: Material (
292
- type: MaterialType .transparency,
293
- textStyle: route.style,
294
- child: ScrollConfiguration (
295
- // Dropdown menus should never overscroll or display an overscroll indicator.
296
- // Scrollbars are built-in below.
297
- // Platform must use Theme and ScrollPhysics must be Clamping.
298
- behavior: ScrollConfiguration .of (context).copyWith (
299
- scrollbars: false ,
300
- overscroll: false ,
301
- physics: const ClampingScrollPhysics (),
302
- platform: Theme .of (context).platform,
303
- ),
304
- child: PrimaryScrollController (
305
- controller: widget.route.scrollController! ,
306
- child: Scrollbar (
307
- thumbVisibility: true ,
308
- child: ListView (
309
- padding: kMaterialListPadding,
310
- shrinkWrap: true ,
311
- children: children,
312
- ),
289
+ child: Material (
290
+ type: MaterialType .transparency,
291
+ textStyle: route.style,
292
+ child: ScrollConfiguration (
293
+ // Dropdown menus should never overscroll or display an overscroll indicator.
294
+ // Scrollbars are built-in below.
295
+ // Platform must use Theme and ScrollPhysics must be Clamping.
296
+ behavior: ScrollConfiguration .of (context).copyWith (
297
+ scrollbars: false ,
298
+ overscroll: false ,
299
+ physics: const ClampingScrollPhysics (),
300
+ platform: Theme .of (context).platform,
301
+ ),
302
+ child: PrimaryScrollController (
303
+ controller: widget.route.scrollController! ,
304
+ child: Scrollbar (
305
+ thumbVisibility: true ,
306
+ child: ListView (
307
+ padding: kMaterialListPadding,
308
+ shrinkWrap: true ,
309
+ children: children,
313
310
),
314
311
),
315
312
),
0 commit comments