How to remove internal spacing from a text button in flutter?
Remove the internal spacing of the button
TextButton(
style: ButtonStyle(
padding: MaterialStateProperty.all<EdgeInsetsGeometry>(
EdgeInsets.zero),
tapTargetSize: MaterialTapTargetSize.shrinkWrap
),
onPressed: () {},
child: Container(
width: 50,
height: 50,
decoration: BoxDecoration(
color: const Color(0xffF6F6F7),
borderRadius: BorderRadius.circular(50)),
child: const Padding(
padding: EdgeInsets.all(12.0),
child: Icon(CupertinoIcons.search),
))),