width and height of device flutter code example Example: get screen height flutter double height = MediaQuery.of(context).size.height;