用 flutter 解决 ExpandableText 组件三点颜色调整的问题 - a. 相关代码
最编程
2024-06-23 15:54:48
...
1、代码如下:
2、我们设置linkColor就能设置ExpandableText三个点的颜色
ExpandableText(
'简介:${TextUtil.isEmpty(profile) ? '没有简介' : profile}',
style: context.titleStyle?.copyWith(fontSize: 12.s, fontWeight: FontWeight.w500),
expandText: '全部',
collapseText: '收起',
maxLines: 3,
animation: true,
expandStyle: context.textStyle?.copyWith(fontSize: 12.s, fontWeight: FontWeight.w500),
linkColor: context.textStyle?.color,
),
上一篇: HtmlUnit II 入门
下一篇: Git 分支策略和工作流程