반응형
[Flutter] 플러터 - 카드 동적 생성 및 가로 세로 비율 조정(Dynamic card creation and aspect ratio adjustment)
Flutter 플러터 - 카드 동적 생성 및 가로 세로 비율 조정(Dynamic card creation and aspect ratio adjustment)
이모티콘・01・고양이 마멋 친구들 - Google Play 앱
이모티콘・01・고양이 마멋 친구들: 무료 이모티콘, 회원가입 없이! 카톡, SNS로 감정 표현이 쉬워져요. 귀여움 가득, 대화창을 더 풍성하게!
play.google.com
안녕하세요 정보처리마법사 입니다.
이번 포스팅의 주제는 카드 동적 생성에 관한 내용입니다.


이상으로 포스팅을 마칩니다. 감사합니다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
body: Container(
color: bodyColor,
child: GridView.builder(
itemCount: 7,
itemBuilder: (context, index) {
return Card(
elevation: 2,
color: Colors.grey,
child: Column(
children: <Widget>[
Expanded(
flex: 5,
child: Image.asset('name'),
),
Expanded(
flex: 2,
child: ListTile(
title: Text('$index Title'),
subtitle: Text('$index Sub Title'),
),
),
],
),
);
},
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 2,
childAspectRatio: .8,
),
),
),
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs |
Ctrl + C , Ctrl + V
이상으로 포스팅을 마칩니다. 감사합니다.
잘 못 된 정보가 있으면 말씀해주세요.
공감버튼 클릭은 작성자에게 큰 힘이 됩니다. 행복한 하루 되세요.

“파트너스 활동을 통해 일정액의 수수료를 제공받을 수 있음"
반응형