Dev/Flutter
Flutter - Divider(구분선)
healthyryu
2021. 12. 29. 10:12
Flutter 에서 구분선을 구현하는 방법

1. 기본적인 가로 구분선
구현
Divider(thickness: 1, height: 1, color: myColor)
Divider.dart 생성자
const Divider({
Key? key,
this.height,
this.thickness,
this.indent,
this.endIndent,
this.color,
})
2. 세로 구분선
VerticalDivider(thickness: 1, width: 1, color: color)
VerticalDivider.dart 생성자
const VerticalDivider({
Key? key,
this.width,
this.thickness,
this.indent,
this.endIndent,
this.color,
})
둘의 차이가 width 이냐 height 이냐의 차이 입니다.
은근히 쓸데 많으니 keep!!!
반응형