如何在颤动中设计这种类型的句子?

问题描述 投票:0回答:1

我在ipad应用程序中出现了溢出错误,该应用程序设计得很扑朔迷离,但无法获得确切的ui。enter image description here

下面是我尝试过的代码段。

return Row(
      children: <Widget>[
        Text(
          'Rebars were ASTM grade  ',
          style: TextStyle(fontSize: labelSize),
        ),
        Container(
          width: 50,
          height: 30,
          child: TextField(
            decoration: InputDecoration(
              border: OutlineInputBorder(),
              hintText: '20',
              hintStyle: TextStyle(
                color: Colors.grey,
              ),
              contentPadding: EdgeInsets.symmetric(vertical: 5, horizontal: 15),
            ),
          ),
        ),
        Text(
          '  and were placed in general accordance with ACI code 318.',
          style: TextStyle(fontSize: labelSize),
        ),
      ],
    );
flutter flutter-layout
1个回答
0
投票

尝试用Row包装Container小部件,然后将Container的宽度设置为double.infinityMediaQuery.of(context).size.width

© www.soinside.com 2019 - 2024. All rights reserved.