iOS风格的导航栏. 通常和CupertinoPageScaffold一起使用
CupertinoNavigationBar({
Key key,
this.leading,
this.automaticallyImplyLeading = true,
this.automaticallyImplyMiddle = true,
this.previousPageTitle,
this.middle,
this.trailing,
this.border = _kDefaultNavBarBorder,
this.backgroundColor,
this.brightness,
this.padding,
this.actionsForegroundColor,
this.transitionBetweenRoutes = true,
this.heroTag = _defaultHeroTag,
})
leading: Icon(Icons.arrow_back),
automaticallyImplyLeading : true,
automaticallyImplyMiddle : true,
previousPageTitle : "返回",
middle: Text("标题"),
trailing: Image.asset(
"lib/assets/sample/image.jpg",
width: 25.0,
height: 25.0
),
backgroundColor: Color(0xfff1f1f1),
padding: EdgeInsets.symmetric(vertical: 20.0,horizontal: 10.0),
actionsForegroundColor: Colors.red,