Closed moujunqiang closed 1 year ago
SizedBox(height: 10.w,), 不应该是SizedBox(height: 10.h,),
SizedBox(height: 10.w,), 不应该是SizedBox(height: 10.h,),
我写的是SizedBox(height: 10.w,), 超出了范围
This issue is stale because it has been open for 30 days with no activity.
父组件建议高度不要限制死, 因为不同手机会变成不同的尺寸,无论是用h还是w都无法保证不溢出. 或者看看是不是高度上的适配不一致
使用的size大小是 375*812 在小屏幕的手机上显示超出范围,大屏幕手机上可以正常显示 下面是代码 Container( margin: EdgeInsets.only(top: 20.w), alignment: Alignment.centerLeft, height: 125.w, child: Row( children: [ Image.network( "https://img0.baidu.com/it/u=2862534777,914942650&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500", width: 100.w, height: 125.w, fit: BoxFit.fill, ), Expanded(