hyzp_ybqx-Commit143:用 Expanded 解决Text内容展示越界問題
This commit is contained in:
@@ -11,6 +11,7 @@ import 'package:keyboard_avoider/keyboard_avoider.dart';
|
||||
|
||||
//
|
||||
import '../../../components/commonFun.dart';
|
||||
|
||||
//import 'package:hyzp_ybqx/widget/player_pro_new.dart';
|
||||
import '../../../components/dioFun.dart';
|
||||
import '../../../components/doJSON.dart';
|
||||
@@ -112,7 +113,8 @@ class _FhycxPageState extends State<FhycxContentNew> {
|
||||
_mapTsjjGetTsStatus = await tsjjGetTsStatus(widget.id);
|
||||
|
||||
// 获取网络图片尺寸
|
||||
await flustars.WidgetUtil.getImageWH(url: getMediaUrl(_mapGetTsjjGetData['pic_url'])).then((rect) {
|
||||
await flustars.WidgetUtil.getImageWH(url: getMediaUrl(_mapGetTsjjGetData['pic_url']))
|
||||
.then((rect) {
|
||||
if (null != rect) {
|
||||
_radioImage = rect.height / rect.width;
|
||||
}
|
||||
@@ -618,8 +620,10 @@ class _FhycxPageState extends State<FhycxContentNew> {
|
||||
width: ScreenUtil().setWidth(1022) / _radio,
|
||||
child: Row(mainAxisAlignment: MainAxisAlignment.start, children: <Widget>[
|
||||
SizedBox(width: ScreenUtil().setWidth(_marginLeft)),
|
||||
Text('$_hyshlx用户:' + _hyshMap['uname'],
|
||||
textAlign: TextAlign.left, overflow: TextOverflow.ellipsis),
|
||||
// Flutter 解决Text内容展示越界
|
||||
Expanded(
|
||||
child: Text('$_hyshlx用户:' + _hyshMap['uname'],
|
||||
textAlign: TextAlign.left, overflow: TextOverflow.ellipsis)),
|
||||
]),
|
||||
),
|
||||
SizedBox(width: ScreenUtil().setWidth(_marginLeft)),
|
||||
|
||||
Reference in New Issue
Block a user