The Default Margin of Buttons is adaptive according to the PlatForm they are used.
On Desktop Apps these seems to have no marging and on android, ios it has margin, how to fix this
I have tried changing the Visual density, adjusting the BoxContraints, etc by referring to this and those does not work.
2
Answers
The actual solution is to use
tapTargetSize: MaterialTapTargetSize.padded
for margin andtapTargetSize: MaterialTapTargetSize.shrinkWrap
for removing the margin. Hope this helps.You can also define
materialTapTargetSize: MaterialTapTargetSize.padded
on yourThemeData
to set margin accross the app for all supported widgets.Easy Method. Please review this code