Flutter InputDecoration中Flatter应用程序中的文本溢出

Flutter InputDecoration中Flatter应用程序中的文本溢出,flutter,Flutter,我正在使用InputDecoration在Flatter应用程序中添加提示文本。但是,当我运行应用程序时,文本溢出,这不是我想要的,因为它不能帮助用户这样做 装饰:输入装饰( contentPadding:EdgeInsets.fromLTRB(10,0,10,0), hintText:“输入数字(克)”, helperText:'选择茶匙或汤匙,然后单击“计算”按钮计算水', 边框:OutlineInputBorder(), 图标:图标(Icons.send), ),您可以添加帮助热线: I

我正在使用InputDecoration在Flatter应用程序中添加提示文本。但是,当我运行应用程序时,文本溢出,这不是我想要的,因为它不能帮助用户这样做

装饰:输入装饰(
contentPadding:EdgeInsets.fromLTRB(10,0,10,0),
hintText:“输入数字(克)”,
helperText:'选择茶匙或汤匙,然后单击“计算”按钮计算水',
边框:OutlineInputBorder(),
图标:图标(Icons.send),

),
您可以添加
帮助热线

InputDecoration(
            contentPadding: EdgeInsets.fromLTRB(10, 0, 10, 0),
            hintText: 'Enter in numbers (gram)',
            helperText: 'Select teaspoon or tablespoon and click "Calculate" button for Water',
            helperMaxLines: 2,
            border: OutlineInputBorder(),
            icon: Icon(Icons.send),
          ),

为什么不添加一些小的辅助文本呢?它太长了。您希望它精确到什么程度?将文本显示为两行?@s_erfani-是的,我希望文本显示为两行,这样它就不会溢出。我会考虑这个问题,因为我想在用户第一次使用时给他们提供指导。