Skip to content

Commit c126ab3

Browse files
authored
chore(example): 注释掉示例组件中的文本颜色属性 (Tencent#788)
- 注释掉了标题文本的颜色属性 - 注释掉了描述文本的颜色属性 - 注释掉了列表项文本的颜色属性 - 添加了待办注释提醒后续处理BuildContext相关问题
1 parent 1483cdd commit c126ab3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tdesign-component/example/lib/base/example_widget.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ class _ExamplePageState extends State<ExamplePage> {
303303
TDText(
304304
widget.title,
305305
font: TDTheme.of(context).fontHeadlineSmall,
306-
textColor: TDTheme.of(context).textColorPrimary,
306+
// todo BuildContext
307+
// textColor: TDTheme.of(context).textColorPrimary,
307308
),
308309
Container(
309310
margin: const EdgeInsets.only(
@@ -312,6 +313,7 @@ class _ExamplePageState extends State<ExamplePage> {
312313
child: TDText(
313314
widget.desc,
314315
font: TDTheme.of(context).fontBodyMedium,
316+
// todo BuildContext
315317
textColor: TDTheme.of(context).textColorSecondary,
316318
),
317319
),
@@ -331,7 +333,8 @@ class _ExamplePageState extends State<ExamplePage> {
331333
child: TDText(
332334
'${index < 10 ? "0$index" : index} ${data.title}',
333335
font: TDTheme.of(context).fontTitleLarge,
334-
textColor: TDTheme.of(context).textColorPrimary,
336+
// todo BuildContext
337+
// textColor: TDTheme.of(context).textColorPrimary,
335338
fontWeight: FontWeight.bold,
336339
),
337340
),

0 commit comments

Comments
 (0)