簡體   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

許多可能的解決方案:

  • 用 SingleChildScrollView 包裹你的 Column 小部件
  • 用可滾動小部件替換列
  • 使用“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