height: MediaQuery.of(context).size.height, code example Example: set container height flutter 25% of screen MediaQuery.of(context).size.height * 0.25