07-21-2023, 01:37 PM
I am wondering where the top edge of application starts in flutter. Look at the following hello world app:
[![enter image description here][1]][1]
The debug banner has gone below the status bar, which indicates that the top edge of my application starts from the edge of the screen. However, the application's `AppBar` has been place right after the status bar. This insconsistency is confusing me! Is the small part of application overlapped under status bar part of my application or not? Why is the `AppBar` not under status bar? How can I decide how my app should overlap with status bar? And what's the best practice here? Is overlapping the application header with status bar a good practice?
[1]:
[![enter image description here][1]][1]
The debug banner has gone below the status bar, which indicates that the top edge of my application starts from the edge of the screen. However, the application's `AppBar` has been place right after the status bar. This insconsistency is confusing me! Is the small part of application overlapped under status bar part of my application or not? Why is the `AppBar` not under status bar? How can I decide how my app should overlap with status bar? And what's the best practice here? Is overlapping the application header with status bar a good practice?
[1]: