flutter - Flutter 代码中的文本溢出不起作用
问题描述
我正在尝试省略 Flutter 应用程序中的文本,但我无法设置它。
我设计的视图如下
Positioned(
bottom: 20,
left: 10,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
snapshot.data.results[index].title,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.start,
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.w600,
color: Colors.white,
),
),
Text(
snapshot.data.results[index].release_date,
style: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w400,
color: Colors.white,
letterSpacing: 1.2),
),
],
))
解决方案
推荐阅读
- vba - 子或函数未定义 MS Access SendEmailFromOutlook
- python - AWS Python 开发工具包 - 发送 CLI 命令
- node.js - 在 Node 中保存来自 REST POST 调用的数据
- sql - 用于获取 5 列相同但只有一列不同的所有记录的 sql 查询
- r - 嵌套数据框上的函数向量算术
- ruby-on-rails - 设计:如何在更新用户信息时跳过电子邮件验证?
- acumatica - Acumatica - 由于图像而设置网格行高
- php - 您指定的 PHP exe 文件未正确运行:C:\xampp\php\php.exe 。我已附加我的 php.ini 文件我应该更改什么
- php - PHP:foreach循环将数组的值分配给连接的字符串和变量
- powershell - 第一个实例后的 Powershell FileSystemWatcher 错误