当前位置:网站首页>Flutter gets the height of the status bar statusbar
Flutter gets the height of the status bar statusbar
2022-07-31 16:24:00 【Delicious code farmer】
The reason for this short article is that I can't get the height of the statusbar using a lot of recommended solutions on the Internet.
final double statusBarHeight = MediaQuery.of(context).padding.top;This code cannot get the actual statusbar height.
If you can't get the real statusbar height using the above method, it is recommended to use
//Introduce firstimport 'dart:ui';MediaQueryData.fromWindow(window).padding.top;边栏推荐
- 牛客 HJ18 识别有效的IP地址和掩码并进行分类统计
- 【C语言】LeetCode27.移除元素
- 牛客 HJ19 简单错误记录
- .NET 20th Anniversary Interview - Zhang Shanyou: How .NET technology empowers and changes the world
- 2020微信小程序反编译教程(小程序反编译源码能用吗)
- 更新数据表update
- Snake Project (Simple)
- 在资源管理类中提供对原始资源的访问——条款15
- Applicable Scenarios of Multi-Master Replication (1) - Multi-IDC
- Delete the disk in good condition (recovery partition)
猜你喜欢

Foreign media right, apple on May be true in inventory

Graham‘s Scan法求解凸包问题

Dialogue with Zhuang Biaowei: The first lesson of open source

Kubernetes common commands

C程序是如何跑起来的01 —— 普通可执行文件的构成

2022年必读的12本机器学习书籍推荐

After Grafana is installed, the web opens and reports an error

智能垃圾桶(八)——红外对管传感器(树莓派pico)

Kubernetes常用命令

上传图片-微信小程序(那些年的坑记录2022.4)
随机推荐
Browser's built-in color picker
Implement anti-shake and throttling functions
外媒所言非虚,苹果降价或许是真的在清库存
form 表单提交后,使页面不跳转[通俗易懂]
mysql black window ~ build database and build table
Replication Latency Case (3) - Monotonic Read
i.MX6ULL driver development | 33 - NXP original network device driver reading (LAN8720 PHY)
Premiere Pro 2022 for (pr 2022)v22.5.0
牛客 HJ19 简单错误记录
百度网盘网页版加速播放(有可用的网站吗)
tensorflow2.0 cnn(layerwise)
Deployment application life cycle and Pod health check
Use of radiobutton
Oracle dynamically registers non-1521 ports
[TypeScript] In-depth study of TypeScript type operations
[Meetup Preview] OpenMLDB+OneFlow: Link feature engineering to model training to accelerate machine learning model development
2022年整理LeetCode最新刷题攻略分享(附中文详细题解)
ansible学习笔记02
The new BMW 3 Series is on the market, with safety and comfort
深度学习机器学习理论及应用实战-必备知识点整理分享