LiqButton class final
iOS 26 button.
All visual values are sourced from liqkit's buttons.css:
--btn-accent-blue: #0088ff
--btn-accent-red: #ff383c
--btn-fill-secondary: #78788029
--btn-fill-tertiary: #7676801f
--btn-prominent-disabled-bg: #0088ff33
--btn-destructive-bg: #ff383c24
--btn-destructive-bg-prominent: #ff383c33
border-radius: 999px (full pill)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LiqButton
Constructors
- LiqButton({required String label, required VoidCallback? onPressed, LiqButtonStyle style = LiqButtonStyle.borderedProminent, LiqButtonSize size = LiqButtonSize.medium, bool destructive = false, IconData? leadingIcon, IconData? trailingIcon, bool isLoading = false, VoidCallback? onLongPress, bool fullWidth = false, Key? key})
-
Creates a liqkit_ui button.
const
Properties
- destructive → bool
-
When true, applies the iOS 26 destructive coloring.
final
- fullWidth → bool
-
When true, the button stretches to the available parent width
instead of sizing to its label intrinsically.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
When true, the label is replaced by a centered spinner and tap
callbacks are suppressed.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String
-
Display text.
final
- leadingIcon → IconData?
-
Optional icon rendered before the label.
final
- onLongPress → VoidCallback?
-
Optional long-press callback. Disabled when onPressed is null
or isLoading is true.
final
- onPressed → VoidCallback?
-
Tap callback. When
nullthe button is rendered disabled.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → LiqButtonSize
-
Size axis.
final
- style → LiqButtonStyle
-
Visual style.
final
- trailingIcon → IconData?
-
Optional icon rendered after the label.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited