Skip to content

Brntabbar 距离过长问题 #340

Closed
Closed
@zhaoweiguo5505

Description

brntab bar 设置4个的时候 同时设置 mode 为 BrnTabBarBadgeMode.origin 禁止滑动。就会出现距离越界

The following assertion was thrown during layout:
A RenderFlex overflowed by 4.8 pixels on the right.

附上代码
tabs.add(BadgeTab(text: "All",topText: "1"));
tabs.add(BadgeTab(text: "Order",topText: "2"));
tabs.add(BadgeTab(text: "Order received".replaceAll(' ', "\u200B"),topText: "2"));
tabs.add(BadgeTab(text: "Completed",topText: "2"));

BrnTabBar(tabs:logic.tabs.value,controller:logic.tabController,hasIndex: true,mode: BrnTabBarBadgeMode.origin,isScroll: false,);

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