반응형
SafeArea
는 기기별로 다른 StatusBar 등의 영영에 자동으로 padding
을 넣어주는 역할을 한다. 특히 Stack
등으로 앱 레이아웃을 제작하는 경우 기기마다 다르게 표시되는 경우가 많아 대환장 파티를 할 수 있는데, SafeArea
안에서 놀게 되면 깔끔한 디자인이 가능하다.
다른 것들은 다 간단한 건데, maintainBottomViewPadding
은 뭐하는 건지 모르겠다.
flutter.dev Reference
SafeArea class - widgets library - Dart API
A widget that insets its child by sufficient padding to avoid intrusions by the operating system. For example, this will indent the child by enough to avoid the status bar at the top of the screen. It will also indent the child by the amount necessary to a
api.flutter.dev
반응형
'Development > Flutter - Widget' 카테고리의 다른 글
Flutter Widget] #03 Wrap (0) | 2020.03.20 |
---|---|
Flutter Widget] #02 Expanded (0) | 2020.03.19 |
Widget] AlertDialog, CupertinoAlertDialog (0) | 2020.03.10 |
Flutter Widget of the Week List (11~20) (0) | 2020.03.06 |
Flutter Widget of the Week List (01~10) (0) | 2020.03.06 |