I have a container with IconButton inside it. Then I set width of this container to .0. I see the Icon.
class Test extends StatelessWidget{
const Test({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
width: .0,
color: Colors.black26,
child: IconButton(
icon: const Icon(Icons.info),
onPressed: () {},
),
);
}
}
Why the Icon not hide, and how can I hide the Icon then the parent Container have width = 0.
