Перейти к основному содержимому

InkWell

Название типаПоддерживает анимации свойствКонтроллируемый по умолчаниюМожет содержать связанное действиеСсылка
InkWell✗✔️✗link
Атрибуты (устаревшие модели)
final class InkWellAttributes implements DuitAttributes<InkWellAttributes> {
final ServerAction? onTap,
onDoubleTap,
onLongPress,
onTapDown,
onTapUp,
onTapCancel,
onSecondaryTapDown,
onSecondaryTapCancel,
onSecondaryTap,
onSecondaryTapUp;
final Color? focusColor, hoverColor, highlightColor, splashColor;
final WidgetStateProperty<Color>? overlayColor;
final double? radius;
final BorderRadius? borderRadius;
final ShapeBorder? customBorder;
final bool enableFeedback, excludeFromSemantics, autofocus, canRequestFocus;
final Duration? hoverDuration;
// final WidgetStatesController? statesController;

const InkWellAttributes({
required this.enableFeedback,
required this.excludeFromSemantics,
required this.autofocus,
required this.canRequestFocus,
this.onTap,
this.onDoubleTap,
this.onLongPress,
this.onTapDown,
this.onTapUp,
this.onTapCancel,
this.onSecondaryTapDown,
this.onSecondaryTapCancel,
this.onSecondaryTap,
this.onSecondaryTapUp,
this.focusColor,
this.hoverColor,
this.highlightColor,
this.splashColor,
this.overlayColor,
this.radius,
this.borderRadius,
this.customBorder,
this.hoverDuration,
// this.statesController,
});

Пример использования​

InkWell(
&duit_attributes.InkwellAttributes[duit_color.ColorString, duit_core.RemoteAction, duit_decoration.BeveledRectangleBorder[duit_color.ColorString]]{
OnTap: &duit_core.RemoteAction{
Event: "/some_endpoint",
DependsOn: []*duit_core.ActionDependency{},
},
},
"id",
nil,
)