Answers for "flutter flip icon of IconButton"

1

flutter flip icon of IconButton

// Solution 1
import 'dart:math' as math;

Transform.rotate(
  angle: 180 * math.pi / 180,
  child: IconButton(
    icon: Icon(
      Icons.play_arrow,
      color: Colors.white,
    ),
    onPressed: null,
  ),
),

// Solution 2
RotatedBox(
  quarterTurns: 2,
  child: IconButton(
    icon: Icon(
      Icons.play_arrow,
      color: Colors.white,
    ),
    onPressed: null,
  ),
),
Posted by: Guest on October-26-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language