FLUTTER ECOSYSTEM

Hardikb19/rotating-widgets

用於構建旋轉組件的 Flutter 套件

旋轉小組件 專案封面
Stars
1
Forks
2
最近推送(UTC)
2021年5月15日
專案狀態
未封存
Hardikb19 GitHub avatar
GITHUB User

Hardikb19 ↗

Build gold, deliver crap.

Microsoft
語言DartKotlinSwiftObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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:

Properties Type Description Default Value Required
child Widget This is the widget which needs to be made rotate-able null true
rotateX boolean true if widget is allowed to rotate along X-Axis true false
rotateY boolean true if widget is allowed to rotate along Y-Axis true false
rotateZ boolean true if widget is allowed to rotate along Z-Axis. Note: This allows circular rotation on 2D plane false false
angleRadianX double The 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 true 0.01 false
angleRadianY double The 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 true 0.01 false
angleRadianZ double The 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 true 0.01 false
autoplay boolean Checks whether widget should rotate automatically or not false false
duration Duration The duration between which said child rotates around individual axis by said angle Duration(seconds: 1) false


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