简体   繁体   English

如何修复颤动中小屏幕尺寸的缩放?

[英]How fix scaling for small screen size in flutter?

图像: https : //imgur.com/a/fbb4J6k在 iphone 13 模拟器上,一切看起来都应该如此,但是当您使用屏幕分辨率为 1280x768 的智能手机时,一切都会崩溃https://text-host.ru /bez-zagolovka-1090

Many possible solutions:许多可能的解决方案:

  • Wrap your Column widget by SingleChildScrollView用 SingleChildScrollView 包裹你的 Column 小部件
  • Replace Column with Scrollable Widget用可滚动小部件替换列
  • Use "Wrap" Widget instead of "Column" Widget使用“Wrap”小部件而不是“Column”小部件

 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM