79122037

Date: 2024-10-24 13:12:00
Score: 1
Natty:
Report link

2024 Solution

  1. Wrap IconButton with SizedBox
  2. Set IconButton's padding to EdgeInsets.all(0)

Code Below:

SizedBox(
  height: 30,
  width: 30,
  child: IconButton(
    padding: const EdgeInsets.all(0),
    onPressed: () {},
    icon: Icon(
      Icons.info_outline,
      size: 26
    )
  ),
),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pete Silva