Remove padding from Icon
See original GitHub issueGood day everyone! I am currently trying to remove padding from the Icon but it seems like what ever I did the padding is still there.
I am trying to push both of the arrow at the end of the container and this is my current code.
<View style={{zIndex:10, position: 'absolute', width:20, padding:0, margin:0, backgroundColor:'rgba(0,0,0,0)', justifyContent: 'space-between',alignSelf:'center'}}> <Icon name={"md-arrow-dropdown"} size={35} color="white" style={{padding:0, margin:0, backgroundColor:'red' }} /> <Icon name={"md-arrow-dropup"} size={35} color="white" style={{padding:0, margin:0, backgroundColor:'green'}} /> </View>
How can I achieve that ?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:14
- Comments:14 (1 by maintainers)
Top Results From Across the Web
How do I remove Flutter IconButton big padding?
Instead of removing a padding around an IconButton you could simply use an Icon and wrap it with a GestureDetector or InkWell as...
Read more >How to Remove Extra Padding Around AppBar Leading Icon ...
How to Remove Extra Padding Around AppBar Leading Icon In Flutter ?? ... ], ), ),. Where automaticallyImplyLeading: true hides the leading ...
Read more >Is there any way to remove this padding between icon border ...
Is there any way to remove this padding between icon border and the 'cell' border? So the icon can fill the cell?
Read more >How do I remove the padding around the icons on my desktop ...
Open the Registry Editor and go to HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics. For horizontal spacing, double-click IconSpacing.
Read more >[Solved]-How do I remove Flutter IconButton big padding?
You can also use GestureDetector instead of IconButton, recommended by Shyju Madathil. GestureDetector( onTap: () {}, child: Icon(Icons.volume_up) ). sgon00 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try placing your component inside a “View” by passing the backgroundColor setting to it, then use negative numbers in the margin and padding (MaterialCommunityIcons) until you adjust the space between the edges. Ex:
U guys can use textAlign : center|left|right|top|bottom whatever suits u