我使用fltter_creenutil,以便我的模拟器上的设计与我的实际设备上的设计相同.然而,无论我做什么,我真实设备上的文本大小、行高和容器尺寸都与我的模拟器上的文本大小、线条高度和容器尺寸不同.这只是文本不正确的一个例子.
这是我的代码...
ScreenUtilInit(
designSize: const Size(390, 844), // iPhone 12 dimensions
minTextAdapt: true,
splitScreenMode: true,
builder: (BuildContext context, widget) => OverlaySupport(
child: MaterialApp(
...
)
)
)
...
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: TextStyle(
color: Colors.grey.shade800,
fontSize: 15.sp,
fontWeight: FontWeight.w600,
),
),
Text(
subtitle,
style: TextStyle(
color: Colors.grey.shade500,
fontSize: 13.sp,
),
),
]
...
)
我的模拟器和我的Android设备之间的区别更加明显.你知道我能做些什么让这场比赛更完美吗?