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

InteractiveViewer

Название типаПоддерживает анимации свойствКонтроллируемый по умолчаниюМожет содержать связанное действиеСсылка
InteractiveViewer✗✔️✗link

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

InteractiveViewer(
&duit_attributes.InteractiveViewerAttributes[duit_core.RemoteAction]{
PanEnabled: true,
ScaleEnabled: true,
MinScale: 0.8,
MaxScale: 2.5,
Constrained: true,
ClipBehavior: "hardEdge",
OnInteractionStart: &duit_core.RemoteAction{
Event: "/on_interaction_start",
},
OnInteractionEnd: &duit_core.RemoteAction{
Event: "/on_interaction_end",
},
},
"id",
nil, //child
)