And*_*nov 10 text jquery-ui-selectable flutter
有一个SelectableText
小部件可以让您选择文本。但它缺少overflow
参数,这是必需的......
有什么解决方法可以使其发挥作用吗?或者类似的解决方案?谢谢!
Lal*_*dar 14
刚刚经历过这个。问题是,在 Flutter中,overflow
还没有将其设置为顶级参数,这表明它必须存在,只是不像 中那样作为顶级参数。SelectableText
Text
TextStyle
因此,要overflow
在 中使用SelectableText
,请更改
SelectableText(
text,
overflow: TextOverflow.ellipsis
)
Run Code Online (Sandbox Code Playgroud)
到
SelectableText(
text,
style: TextStyle(
overflow: TextOverflow.ellipsis,
),
)
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2950 次 |
最近记录: |