[英]Height of the Status bar Flutter
Hi I have bean creating a new Flutter project, but in some of screen sizes of the Status bar and the Toolbar has a space between themselves, how can I solve it?您好我有 bean 创建一个新的 Flutter 项目,但是在某些屏幕尺寸的状态栏和工具栏之间有一个空格,我该如何解决?
import 'package:flutter/material.dart';
class MapPage extends StatelessWidget {
const MapPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Map"),
),
);
}
}
It's the space for the cutout on device这是设备上的切口空间
You need to turn off Simulate display with cutout in developper settings, or edit your manifest app like showed here https://developer.android.com/guide/topics/display-cutout您需要在开发人员设置中关闭带有切口的模拟显示,或编辑您的清单应用程序,如下所示https://developer.android.com/guide/topics/display-cutout
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.