flutter image size percentage code example
Example 1: set container height flutter 25% of screen
MediaQuery.of(context).size.height * 0.25
Example 2: flutter image size percentage
MediaQuery.of(context).size.width * 1
Example 3: flutter image size percentage
Expanded(child: Image.asset("assets/mypic.jpg")),