Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

get screen size flutter

//In logical pixels
var width = MediaQuery.of(context).size.width;
var height = MediaQuery.of(context).size.height;

var padding = MediaQuery.of(context).padding;
var safeHeight = height - padding.top - padding.bottom;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #screen #size #flutter
ADD COMMENT
Topic
Name
3+6 =