Answers for "how to rotate icons on flutter"

2

how to rotate icon or text in flutter

Transform.rotate(
                 angle: 50, //set the angel 
                 child: Icon(Icons.format_bold,size: 50,
                 color: Colors.white,
                 ),
               ),
Posted by: Guest on March-04-2021
2

rotate IconButton flutter

import 'dart:math' as math;

Transform.rotate(
  angle: 180 * math.pi / 180,
  child: IconButton(
    icon: Icon(
      Icons.play,
      color: Colors.white,
    ),
    onPressed: null,
  ),
),
Posted by: Guest on April-18-2022

Browse Popular Code Answers by Language