アニメーションなしでフラッターでマテリアルアイコンを回転させる方法は?
How Rotate Material Icon Flutter Without Animation
解決:
あなたはあなたを包むことができますのIconButton
回転コンストラクターを使用してウィジェットを変換します。
'dart:math'をmathとしてインポートします。 Transform.rotate(angle:180 * math.pi / 180、child:IconButton(icon:Icon(Icons.details、color:Colors.white、)、onPressed:null、)、)、
Transform.rotate(角度:180 * pi / 180、子:IconButton(アイコン:Icon(Icons.details、色:Colors.white、)、onPressed:null、)、)、
別の解決策は次のとおりです。
RotatedBox(quarterTurns:2、child:IconButton(icon:Icon(Icons.details、color:Colors.white、)、onPressed:null、)、)、