appBarHeight static method
获取AppBar默认高度
返回结果: double AppBar高度(单位: dp)
- iOS: 状态栏高度 + kToolbarHeight
- Android: 自适应状态栏高度 + kToolbarHeight
示例:
double appBar = DScreenUtil.appBarHeight();
Implementation
static double appBarHeight() {
return topSafeHeight() + kToolbarHeight;
}