AdaptiveIconButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CoreAdaptiveComponent<
CoreAndroidProperty, CoreIOSProperty> - AdaptiveIconButton
- Available extensions
Constructors
-
AdaptiveIconButton({Key? key, CoreAdaptiveBuilder<
Builder< ? builders, VoidCallback? onPressed, Color? color, Color? hoverColor, BorderRadius? borderRadius, Color? disabledColor, MouseCursor mouseCursor = MouseCursor.defer, BoxConstraints constraints = _kAdpIconConstraints, required Widget icon})ThemeData, CoreAndroidProperty?> , Builder<CupertinoThemeData, CoreIOSProperty?> > -
Creates an instance of AdaptiveIconButton.
const
-
AdaptiveIconButton.label({Key? key, CoreAdaptiveBuilder<
Builder< ? builders, VoidCallback? onPressed, Color? color, Color? hoverColor, BorderRadius? borderRadius, Color? disabledColor, MouseCursor mouseCursor = MouseCursor.defer, BoxConstraints constraints = _kAdpIconConstraints, required Widget label, required Widget icon})ThemeData, CoreAndroidProperty?> , Builder<CupertinoThemeData, CoreIOSProperty?> > -
Creates an instance of AdaptiveIconButton.label.
const
Properties
- borderRadius → BorderRadius?
-
The border radius to apply to the icon button. This defines the roundness of the corners
of the button's background.
final
-
builders
→ CoreAdaptiveBuilder<
Builder< ?ThemeData, CoreAndroidProperty?> , Builder<CupertinoThemeData, CoreIOSProperty?> > -
Builders for adapting the component based on platform and theme.
finalinherited
- color → Color?
-
The background color of the icon button.
final
- constraints → BoxConstraints
-
The additional constraints to impose on the child.
final
- disabledColor → Color?
-
The color to be used when the icon button is in a disabled state.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverColor → Color?
-
The color of the button's background when the mouse hovers over it.
final
- icon → Widget
-
The widget to use as the icon, typically an AdaptiveIcon widget.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget?
-
The widget to use within the icon, typically an Text widget.
final
- mouseCursor → MouseCursor
-
Defines the mouse cursor to be displayed when hovering over the icon button.
final
- onPressed → VoidCallback?
-
The callback that is called when the button is tapped.
final
-
properties
→ CoreProperties<
CoreAndroidProperty, CoreIOSProperty> ? -
Properties for customizing the visual and functional aspects of the adaptive component.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
android(
BuildContext context, [CoreAndroidProperty? property]) → Widget -
applyDisabledEffect(
bool isDisabled, [double disabledOpacity = 0.5, bool? ignoringPointer]) → Widget -
Available on Widget, provided by the ApplyDisabledEffect extension
Wraps the current widget with anAnimatedOpacityto visually indicate whether the widget is enabled or disabled. -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
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.
inherited
-
getAdaptiveComponent(
BuildContext context) → Widget -
inherited
-
iOS(
BuildContext context, [CoreIOSProperty? property]) → Widget -
margeWith(
Widget? child, [double? space = 4.0, Axis direction = Axis.horizontal]) → Widget -
Available on Widget, provided by the MergeToChild extension
Merges the current widget withchild, separated by a SizedBox. -
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