rotating_widgets

Platform pub

A simple widget which allows widgets to be turned into rotate-able widgets

Example App

Example gif



Screenshots

X Active Y active Z active XY Auto-Rotate

Custom Usage

There are several options that allow for more control:

PropertiesTypeDescriptionDefault ValueRequired
childWidgetThis is the widget which needs to be made rotate-ablenulltrue
rotateXbooleantrue if widget is allowed to rotate along X-Axistruefalse
rotateYbooleantrue if widget is allowed to rotate along Y-Axistruefalse
rotateZbooleantrue if widget is allowed to rotate along Z-Axis. Note: This allows circular rotation on 2D planefalsefalse
angleRadianXdoubleThe angle by which widget turns across X-Axis, per unit Offset along that axis and if autoplay is false, or per unit duration is autoplay is true0.01false
angleRadianYdoubleThe angle by which widget turns across X-Axis, per unit Offset along that axis and if autoplay is false, or per unit duration is autoplay is true0.01false
angleRadianZdoubleThe angle by which widget turns across X-Axis, per unit Offset along that axis and if autoplay is false, or per unit duration is autoplay is true0.01false
autoplaybooleanChecks whether widget should rotate automatically or notfalsefalse
durationDurationThe duration between which said child rotates around individual axis by said angleDuration(seconds: 1)false


This package can convert any widget into a rotate-able widget including scaffold

Libraries

rotating_widgets