android - 是否有可能在颤动中获得圆形图像的度数?
问题描述
在颤振中,我在下面的地图检查图片中进行了四舍五入的图像
https://i.stack.imgur.com/uQc1E.png
因此,我能够获得任何程度的图片,并在那时画一些东西。
如果您知道此问题的解决方案,请回答此问题。
解决方案
您可以通过用小部件包装小部件来旋转小Transform.rotate
部件。
这是一个例子:
Transform.rotate(
angle: 45, //change this value to rotate the child
child: Container(
height: 100,
width: 50,
color: Colors.red,
),
),
推荐阅读
- php - Redis 和 symfony PSR16 缓存
- python - 如何将字段的“描述”放在表单字段中?
- php - 如何处理可排队通知上的失败作业
- ios - segue 后页面视图大小不正确
- javascript - jQuery 脚本有冲突
- kubernetes-ingress - Istio 入口网关,收到 403 禁止错误
- javascript - 如何在javascript中触发对元素的点击
- javascript - 无法将 php 变量解析为 javascript 可读变量
- share - Fancybox 3 使用 api 方法和分享按钮打开
- python - 在 python 中搜索 2d 列表中的元组