@@ -55,7 +55,7 @@ class _DropdownMenuPainter extends CustomPainter {
5555 super (repaint: resize);
5656
5757 final Color ? color;
58- final int ? elevation;
58+ final double ? elevation;
5959 final int ? selectedIndex;
6060 final Animation <double > resize;
6161 final ValueGetter <double > getSelectedItemOffset;
@@ -425,7 +425,7 @@ class _DropdownRoute<T> extends PopupRoute<_DropdownRouteResult<T>> {
425425 final EdgeInsetsGeometry padding;
426426 final Rect buttonRect;
427427 final int selectedIndex;
428- final int elevation;
428+ final double elevation;
429429 final CapturedThemes capturedThemes;
430430 final TextStyle style;
431431 final double ? itemHeight;
@@ -568,7 +568,7 @@ class _DropdownRoutePage<T> extends StatelessWidget {
568568 final EdgeInsetsGeometry padding;
569569 final Rect buttonRect;
570570 final int selectedIndex;
571- final int elevation;
571+ final double elevation;
572572 final CapturedThemes capturedThemes;
573573 final TextStyle ? style;
574574 final Color ? dropdownColor;
@@ -997,12 +997,8 @@ class DropdownButton<T> extends StatefulWidget {
997997 final DropdownButtonBuilder ? selectedItemBuilder;
998998
999999 /// The z-coordinate at which to place the menu when open.
1000- ///
1001- /// The following elevations have defined shadows: 1, 2, 3, 4, 6, 8, 9, 12,
1002- /// 16, and 24. See [kElevationToShadow] .
1003- ///
10041000 /// Defaults to 8, the appropriate elevation for dropdown buttons.
1005- final int elevation;
1001+ final double elevation;
10061002
10071003 /// The text style to use for text in the dropdown button and the dropdown
10081004 /// menu that appears when you tap the button.
@@ -1540,7 +1536,7 @@ class DropdownButtonFormField<T> extends FormField<T> {
15401536 Widget ? disabledHint,
15411537 this .onChanged,
15421538 VoidCallback ? onTap,
1543- int elevation = 8 ,
1539+ double elevation = 8 ,
15441540 TextStyle ? style,
15451541 Widget ? icon,
15461542 Color ? iconDisabledColor,
0 commit comments