ui_kit/feat/button-components #134

Merged
hugo merged 35 commits from ui_kit/feat/button-components into master 2023-02-16 08:58:03 +00:00
Showing only changes of commit 5050e2c2bb - Show all commits

View File

@ -24,6 +24,9 @@ enum ControlState {
/// When the mouse cursor is hover the control
hovered,
/// When the control is clicked
tapped,
/// When the control is focused (like pressing tab)
focused,
@ -36,6 +39,7 @@ enum ControlState {
bool isDisabled() => this == ControlState.disabled;
bool isEnabled() => this != ControlState.disabled;
bool isHovered() => this == ControlState.hovered;
bool isTapped() => this == ControlState.tapped;
bool isFocused() => this == ControlState.focused;
bool isSelected() => this == ControlState.selected;
bool isInvalid() => this == ControlState.invalid;