欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

用 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,
            ),