Skip to content

[TabBar] 当TDBottomTabBarBasicType.iconText类型的时候,选中和非选中的时候,文字变色,图标不变色 #900

@lishuai904247315

Description

@lishuai904247315

tdesign-flutter 版本

0.2.7

重现链接

No response

重现步骤/代码

TDBottomTabBar(
TDBottomTabBarBasicType.iconText,
componentType: TDBottomTabBarComponentType.normal,
useVerticalDivider: false,
currentIndex: 0,
navigationTabs: [
TDBottomTabBarTabConfig(
tabText: "书籍",
selectedIcon: Icon(TDIcons.book),
unselectedIcon: Icon(
TDIcons.book
),
onTap: () {},
),
TDBottomTabBarTabConfig(
tabText: "我的",
selectedIcon: Icon(TDIcons.user),
unselectedIcon: Icon(
TDIcons.user
),
onTap: () {},
),
],
)

期望结果

被选中时,图标和文字都改变颜色

实际结果

只有文字改变颜色,图标一直呈现的是被选中

Flutter版本

No response

设备与机型信息

No response

系统版本

No response

补充说明

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions