79586012

Date: 2025-04-22 08:40:34
Score: 2.5
Natty:
Report link

Welcome to flutter. Can you share the code where you are calling the MyDrawer(), I cannot see the overflow when I run it in my device.

For the second error: the problem is that the Image.network in the ExpansionTile.leading doesn't find the image so it shows a error placeholder and that placeholder overflows, you can add errorBuilder:

leading: Image.network(
  icon,
  width: 20,
  height: 20,
  errorBuilder: (context, _, __) {
    return const SizedBox();
  },
),

some other recommendations:

Your MyDrawer can be StatelessWidget instead of StatefullWidget

The use of Material in your tiles seams to be unnecessary

[...] is same as .toList()

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (2.5): Can you share the code
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Shlomo Cardoso