ListStyle constructor
const
ListStyle({
- Color backgroundColor = Colors.white,
- BorderRadius? borderRadius,
- Border? border,
- TextStyle contentTextStyle = const TextStyle(decorationThickness: 0, color: Color(0xff495057), fontSize: 14, fontFamily: 'Pretendard', fontWeight: FontWeight.w500, height: 1.43),
- TextStyle hintTextStyle = const TextStyle(color: Color(0xffADB5BD), fontSize: 14, fontFamily: 'Pretendard', fontWeight: FontWeight.w500, height: 1.43),
- String hintText = '내용을 입력해주세요',
- EdgeInsets listPadding = const EdgeInsets.symmetric(vertical: 2.0),
- EdgeInsets textPadding = const EdgeInsets.symmetric(horizontal: 10.0, vertical: 20.0),
- double animateBeginScale = 1.0,
- double animateEndScale = 1.1,
- Icon deleteIcon = const Icon(Icons.cancel, color: Colors.black, size: 18.0),
Implementation
const ListStyle({
this.backgroundColor = Colors.white,
this.borderRadius,
this.border,
this.contentTextStyle = const TextStyle(
decorationThickness: 0,
color: Color(0xff495057),
fontSize: 14,
fontFamily: 'Pretendard',
fontWeight: FontWeight.w500,
height: 1.43,
),
this.hintTextStyle = const TextStyle(
color: Color(0xffADB5BD),
fontSize: 14,
fontFamily: 'Pretendard',
fontWeight: FontWeight.w500,
height: 1.43,
),
this.hintText = '내용을 입력해주세요',
this.listPadding = const EdgeInsets.symmetric(vertical: 2.0),
this.textPadding =
const EdgeInsets.symmetric(horizontal: 10.0, vertical: 20.0),
this.animateBeginScale = 1.0,
this.animateEndScale = 1.1,
this.deleteIcon = const Icon(
Icons.cancel,
color: Colors.black,
size: 18.0,
),
});