screen_ratio_adapter 0.0.2 screen_ratio_adapter: ^0.0.2 copied to clipboard
A new Flutter package for screen atio adapter,Low invasion cost.Based wide adaptation,height Scroll or leave blank.It's not a utility class.
screen_ratio_adapter #
A new Flutter package for screen atio adapter,Low invasion cost.Based wide adaptation,height Scroll or leave blank.It's not a utility class.
一个Flutter package ,屏幕适配器,低入侵成本。基于宽度方向适应,高度滚动或留空。并不是一个screen_util。
\设备 | android | Android | iOS |
---|---|---|---|
设备分辨率 | 1080x1794 | 720x2160 | 1242x2688 |
h/w | 1.666 | 3.0 | 2.164 |
屏幕密度比率ρ | 2.625 | 1.2 | 3.0 |
UI稿1(300x510) h/w =1.7 | 过长 | 过短 | 过短 |
适配比率ρ(300x510) | 3.60 | 2.40 | 4.14 |
UI稿1(414x896) h/w =2.16 | 过长 | 过短 | 不变 |
适配比率ρ(414x896) | 2.608 | 1.739 | 3.0 |
import 'package:screen_ratio_adapter/screen_ratio_adapter.dart';
///设计稿尺寸,单位应是pt或dp
Size uiSize = Size(414, 896);
//void main() => runApp(MyApp());
void main() => runFxApp(MyApp(), uiSize: uiSize);