原生的图标是向左
向左 改成 向右


Transform.scale(
scaleX: -1,
child: IconButton(
onPressed: () {},
icon: const Icon(Icons.reply),
),
),
使用Transform.scale方法,通过设置scaleX为-1,将一个向左的IconButton反转,使其看起来像是向右的。onPressed回调函数保持不变,仍用于处理用户点击事件。
原生的图标是向左
向左 改成 向右


Transform.scale(
scaleX: -1,
child: IconButton(
onPressed: () {},
icon: const Icon(Icons.reply),
),
),

被折叠的 条评论
为什么被折叠?