mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-08-06 09:01:00 +08:00
add:
CupertinoNavigationBar CupertinoPageRoute CupertinoPageScaffold
This commit is contained in:
@ -45,6 +45,12 @@ class _BottomNavigationBarFullDefault extends State {
|
||||
title: new Text("List"), icon: new Icon(Icons.list)),
|
||||
BottomNavigationBarItem(
|
||||
title: new Text("Message"), icon: new Icon(Icons.message)),
|
||||
BottomNavigationBarItem(
|
||||
title: new Text("add"), icon: new Icon(Icons.add)),
|
||||
BottomNavigationBarItem(
|
||||
title: new Text("menu"), icon: new Icon(Icons.menu)),
|
||||
BottomNavigationBarItem(
|
||||
title: new Text("other"), icon: new Icon(Icons.devices_other)),
|
||||
|
||||
],
|
||||
);
|
||||
|
@ -25,7 +25,7 @@ const String _text1 =
|
||||
"""### **基本用法**
|
||||
> BottomNavigationBar 底部导航栏通常与Scaffold结合使用
|
||||
- 它作为 Scaffold.bottomNavigationBar 参数;
|
||||
- BottomNavigationBar 支持0-4个之间个底部按钮数量,超出4个系统将会报异常;
|
||||
- BottomNavigationBar 3-5个之间个底部按钮数量是合理的,理论上 icon 大小合适,可以支持更多;
|
||||
- 默认0-3个底部按钮数量时,BottomNavigationBar采用fixed的模式摆放底部按钮,当有4个时默认使用 BottomNavigationBarType.shifting 模式摆放底部按钮;
|
||||
- 下面的底部导航即是效果;
|
||||
""";
|
||||
|
Reference in New Issue
Block a user