DropdownStyleData class
A class to configure the theme of the dropdown menu.
Constructors
- DropdownStyleData({double? maxHeight, double? width, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? scrollPadding, BoxDecoration? decoration, int elevation = 8, DropdownDirection direction = DropdownDirection.textDirection, Offset offset = Offset.zero, bool isOverButton = false, bool useSafeArea = true, @Deprecated('Use useRootNavigator instead.') bool? isFullScreen, ScrollbarThemeData? scrollbarTheme, Interval openInterval = const Interval(0.25, 0.5)})
-
Creates a DropdownStyleData.
const
Properties
- decoration → BoxDecoration?
-
The decoration of the dropdown menu
final
- direction → DropdownDirection
-
The direction of the dropdown menu in relation to the button.
final
- elevation → int
-
The z-coordinate at which to place the menu when open.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFullScreen → bool?
-
Opens the dropdown menu in fullscreen mode (Above AppBar & TabBar)
final
- isOverButton → bool
-
Opens the dropdown menu over the button instead of below it
final
- maxHeight → double?
-
The maximum height of the dropdown menu
final
- offset → Offset
-
Changes the position of the dropdown menu
final
- openInterval → Interval
-
The animation curve used for opening the dropdown menu (forward direction)
final
- padding → EdgeInsetsGeometry?
-
The inner padding of the dropdown menu
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollbarTheme → ScrollbarThemeData?
-
Configures the theme of the menu's scrollbar
final
- scrollPadding → EdgeInsetsGeometry?
-
The inner padding of the dropdown menu including the scrollbar
final
-
Determine whether to open the dropdown menu using the root Navigator or not.
If it's set to to true, dropdown menu will be pushed above all subsequent
instances of the root navigator such as AppBar/TabBar. By default, it is false.
final
- useSafeArea → bool
-
Determine if the dropdown menu should only display in safe areas of the screen.
It is true by default, which means the dropdown menu will not overlap
operating system areas.
final
- width → double?
-
The width of the dropdown menu
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited