// Author: fengshengxiong // Date: 2024/5/8 // Description: 大小 import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; double get statusBarHeight => MediaQuery.of(Get.context!).padding.top; double get bottomBarHeight => MediaQuery.of(Get.context!).padding.bottom; /// BaseAppBar高度 double get baseAppBarHeight => statusBarHeight + kToolbarHeight; /// 有kBottomNavigationBarHeight的body高度 double get bodyHeight => 1.sh - statusBarHeight - bottomBarHeight - kToolbarHeight - kBottomNavigationBarHeight; /// 没有kBottomNavigationBarHeight的body高度 double get noBnbBodyHeight => 1.sh - statusBarHeight - bottomBarHeight - kToolbarHeight;