Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brntabbar 距离过长问题 #340

Closed
zhaoweiguo5505 opened this issue Sep 26, 2022 · 3 comments
Closed

Brntabbar 距离过长问题 #340

zhaoweiguo5505 opened this issue Sep 26, 2022 · 3 comments

Comments

@zhaoweiguo5505
Copy link

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

@leftcoding
Copy link
Collaborator

请按模板提问,谢谢

@violinday
Copy link
Collaborator

问题已复现,将在后续版本中优化overflow 效果,感谢反馈~

@zhoujuanjuan
Copy link
Collaborator

你好,问题已修复,感谢反馈#370

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants