SidebarItemSize enum
Enumerates the size specifications of SidebarItems
Values were adapted from https://developer.apple.com/design/human-interface-guidelines/components/navigation-and-search/sidebars/#platform-considerations and were eyeballed against apps like App Store, Notes, and Mail.
Constructors
- SidebarItemSize(double height, double iconSize)
-
Enumerates the size specifications of SidebarItems
const
Values
- small → const SidebarItemSize
-
A small SidebarItem. Has a height of 24 and an iconSize of 12.
const SidebarItemSize(24.0, 12.0)
- medium → const SidebarItemSize
-
A medium SidebarItem. Has a height of 28 and an iconSize of 16.
const SidebarItemSize(29.0, 16.0)
- large → const SidebarItemSize
-
A large SidebarItem. Has a height of 32 and an iconSize of 20.0.
const SidebarItemSize(36.0, 18.0)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The height of the SidebarItem.
final
- iconSize → double
-
The maximum size of the SidebarItem's leading icon.
final
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
SidebarItemSize> - A constant List of the values in this enum, in order of their declaration.