简体   繁体   中英

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
  • Replace Column with Scrollable Widget
  • Use "Wrap" Widget instead of "Column" Widget

 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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