Placeholder : 자리표시자
플러터에서 router 로 미리 지정된 파일서 어느 영역에서 얼만큼 크기를 차지할 지 임시로 표시해주는 박스
const Placeholder(),
const Placeholder(
fallbackHeight: 50,
fallbackWidth: 200,
이런식으로 박스에 크기도 변경해서 지정해 줄 수 있다.
class Placeholder extends StatelessWidget {
/// Creates a widget which draws a box.
const Placeholder({
super.key,
this.color = const Color(0xFF455A64), // Blue Grey 700
this.strokeWidth = 2.0,
this.fallbackWidth = 400.0,
this.fallbackHeight = 400.0,
this.child
});
'Flutter' 카테고리의 다른 글
[Flutter] Flutter Doctor 에러 처리 모음 (안드로이드스튜디오) (0) | 2023.07.17 |
---|---|
[Flutter] 드롭다운 버튼(DropdownButton) (0) | 2023.06.05 |
[Flutter] ListView 선택 selected 항목 색상 변경 (0) | 2023.05.24 |
[Flutter] 플러터 Color 컬러 Class 분할 및 Style 변수 적용 관리 (0) | 2023.03.25 |
[Flutter] 플러터 빌드 후 충돌되는 Json 모듈 삭제 방법 (0) | 2023.03.20 |