카드 (Card)
Flutter는 다양한 디자인 요소를 구현하기 위한 강력한 도구를 제공합니다. 그 중에서도 다양한 형태와 스타일의 카드 위젯을 만들어 UI를 풍부하게 꾸밀 수 있습니다. 이번 글에서는 몇 가지 유용한 카드 위젯을 소개하겠습니다.
Last updated
RectangleCard(
text: '',
backgroundColor: Colors.white,
borderColor: agnesTheme.primaryColor,
borderRadius: 20,
borderWidth: 1,
shadowColor: agnesTheme.primaryColor,
elevation: 10,
margin: 20,
height: null,
width: null,
);CircleCard(
text: '',
backgroundColor: Colors.white,
borderColor: agnesTheme.primaryColor,
borderWidth: 1,
shadowColor: agnesTheme.primaryColor,
elevation: 10,
margin: 20,
height: 200,
width: 200,
);LabelCard(
backgroundColor: Colors.white,
borderColor: agnesTheme.primaryColor,
borderRadius: 20,
borderWidth: 1,
shadowColor: agnesTheme.primaryColor,
blurRadius: 5,
cardwidth: MediaQuery.of(context).size.width * 0.9,
cardheight: 50,
labelwidth: 50,
labelheight: 20,
label: '',
text: '',
);DividedCard(
topColor: Colors.white,
bottomColor: agnesTheme.primaryColor,
borderRadius: 20,
shadowColor: agnesTheme.primaryColor,
blurRadius: 5,
cardWidth: MediaQuery.of(context).size.width * 0.9,
topText: '',
bottomText: '',
);CustomCard(
backgroundColor: Colors.white,
borderColor: agnesTheme.primaryColor,
borderRadius: 20,
borderWidth: 1,
shadowColor: agnesTheme.primaryColor,
elevation: 10,
margin: 20,
height: null,
width: null,
title: 'title',
subtitle: 'subtitle',
description: 'description',
buttontext: 'button',
);