[英]How fix scaling for small screen size in flutter?
图像: https : //imgur.com/a/fbb4J6k在 iphone 13 模拟器上,一切看起来都应该如此,但是当您使用屏幕分辨率为 1280x768 的智能手机时,一切都会崩溃https://text-host.ru /bez-zagolovka-1090
许多可能的解决方案:
SafeArea( /// controlls the reset of space bottom: false, child: Container( /// define the child height witch breaks the SafeArea physics width: MediaQuery.of(context).size.width, height: MediaQuery.of(context).size.height, decoration: const BoxDecoration( image: DecorationImage( alignment: Alignment.bottomCenter, image: AssetImage('assets/images/spikelets.png'), fit: BoxFit.fitWidth, ), ), child: Column( /// the child you gonna to update with above possabilities
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.