I want to have two icons/icon buttons as shown in the image. Due to padding there is always a space between them. how to remove the padding or is there another solution for this?
2
You can try to use svg image instead of material icons, https://www.iconpacks.net/free-icon/down-arrow-7425.html https://pub.dev/packages/flutter_svg
Those specific icons use a lot of empty space. I would recreate this effect by using a stack and offsetting the two icons.
I quickly put this together. Hope it helps.
Widget build(BuildContext context) { return Container( width: 40, height: 40, decoration: BoxDecoration( color: Color(0x00FFFFFF), ), child: Stack( children: [ Align( alignment: AlignmentDirectional(0, 0.4), child: Icon( Icons.arrow_drop_down, color: Color(0xFF797979), size: 24, ), ), Align( alignment: AlignmentDirectional(0, -0.4), child: Icon( Icons.arrow_drop_up, color: Color(0xFFAAAAAA), size: 24, ), ), ], ), );
}
Click here to cancel reply.
2
Answers
You can try to use svg image instead of material icons, https://www.iconpacks.net/free-icon/down-arrow-7425.html
https://pub.dev/packages/flutter_svg
Those specific icons use a lot of empty space.
I would recreate this effect by using a stack and offsetting the two icons.
I quickly put this together. Hope it helps.
}