Flutter web button margins (Theme managed) (Custom modifications to button themes made by FlexColorScheme) #92
-
Hey @rydmike, thank you so much for this fantastic package. I have a question regarding MaterialTapTargetSize. How can I apply the different margin to unify web and mobile? For reference this is what I am trying to achieve: https://stackoverflow.com/questions/67580491/why-dont-the-buttons-in-flutter-web-have-a-margin Thank you so much |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Prayer-RecycleSmart thank you for your question. This is good question and complicated a bit by the different structure of the button themes compared to other component themes. How to modify
|
Beta Was this translation helpful? Give feedback.
Hi @Prayer-RecycleSmart thank you for your question.
This is good question and complicated a bit by the different structure of the button themes compared to other component themes.
How to modify
materialTapTargetSize
on globalThemeData
?First off, as you probably figured out, if you want to set
MaterialTapTargetSize
globally for everything in yourThemeData
to e.g.MaterialTapTargetSize.shrinkWrap
you can do that with a simplecopyWith
on theThemeData
produced byFlexColorScheme
: