How can I rotate a Container widget in 2D around a specified anchor point?

后端 未结 4 1986
余生分开走
余生分开走 2021-02-05 09:44

I\'d like to perform a very simple 2D rotation of a Container widget (that contains a handful of other widgets.) This widget would be rotated around a single fixed point in the

4条回答
  •  北海茫月
    2021-02-05 09:49

    Apply a translation (to and from the fulcrum) before and after the rotation.

    You can create yourself a little widget that does this, and thus solve your other problem at the same time (hiding the Matrix4).

提交回复
热议问题