Issue
I have a ElevatedButton with the following attributes: I attached a photo here: https://i.stack.imgur.com/oH3pO.png
ElevatedButton(
clipBehavior: Clip.none,
style: ElevatedButton.styleFrom(
padding: EdgeInsets.zero,
minimumSize: Size(0, 0),
elevation: 0,
),
I modified the padding around and it still has a minimum padding (_InputPadding) of 48px by 48px. How can I solve this?
Solution
it is not different in flutter 2 do it like this ,
ElevatedButton(
clipBehavior: Clip.none,
style: ElevatedButton.styleFrom(
padding: MaterialStateProperty.all<EdgeInsets>(EdgeInsets.zero),
minimumSize: Size(0, 0),
elevation: 0,
),
Answered By - Moaid ALRazhy
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.