Issue
How do I get the status bar height?
Solution
var height = MediaQuery.of(context).viewPadding.top;
Note: This will only work on mobile devices because other platforms don't have a dedicated status bar and it will returns 0.0
for them.
Answered By - iDecode
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.