简体   繁体   English

BottomNavigatorBar 与 Flutter 上的 Tabbar

[英]BottomNavigatorBar vs Tabbar on Flutter

I know how can I use tabbar or bottomNavigatorBar.我知道如何使用 tabbar 或 bottomNavigatorBar。 I can create bottom bar with both of them but my question is which one is the best usage to create bottom bar?我可以用它们创建底栏,但我的问题是哪一个是创建底栏的最佳用法? I mean, which one should I use to create bottom bar?我的意思是,我应该使用哪一个来创建底栏?

It will be design based, how you prefer.它将基于设计,您喜欢什么。 I prefer using BottomNavigatorBar for <=5 destination.我更喜欢将BottomNavigatorBar用于 <=5 目的地。 Else, use with Tabbar sometimes.否则,有时与 Tabbar 一起使用。

Let's check the Google material about bottom-navigation让我们查看有关底部导航的 Google 材料

Bottom navigation bars display three to five destinations at the bottom of a screen.底部导航栏在屏幕底部显示三到五个目的地。 Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.每个目的地都由一个图标和一个可选文本 label 表示。点击底部导航图标时,用户将被带到与该图标关联的顶级导航目的地。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM