![](https://steemitimages.com/640x0/https://cdn.steemitimages.com/DQmdTnqpPybw54uskKRbEqPhWDaZhiyZuimU9J3feyNuGdZ/%E1%84%89%E1%85%B3%E1%84%90%E1%85%B5%E1%86%B7%E1%84%8B%E1%85%B5%E1%86%BA%E1%84%91%E1%85%AD%E1%84%8C%E1%85%B5_190409.002.jpeg) # WRAP (감싸기) > 줄과 행에 공간이 부족할 때는 Wrap을 사용해 보세요! Wrap 위젯은 자식을 줄이나 행으로 배치하고 공간이 부족해지면 자동으로 줄이나 행을 바꿔줍니다. 방향, 정렬, 그리고 공간 속성기능이 여러분이 원하시는 디자인을 그대로 만드는 데 도움이 될 것입니다. #### flutter docs https://api.flutter.dev/flutter/widgets/Wrap-class.html #### youtube https://www.youtube.com/watch?v=z5iw2SeFx2M&list=PLjxrf2q8roU23XGwz3Km7sQZFTdB996iG&index=4 # EXAMPLE(예제) <table> <tr> <td>WRAP 적용</td> </tr> <tr> <td>https://cdn.steemitimages.com/DQmU164SvJRoSxPFGYgGEpjM6P5xYfhD7Eab5vWGtkCgStz/Screenshot_1571236171.png</td> </tr> </table> ```flutter import 'package:flutter/material.dart'; import 'package:wsteem/src/examples/helper/WsmBoxWidget.dart'; /// 감싸기 예제 /// class ExWrap extends StatelessWidget { String get name => 'ExWrap'; /// 기본 생성자 const ExWrap({Key key}) : super(key: key); @override Widget build(BuildContext context) { /// 컨테이너 생성 후 Row 영역에 값을 넣어 변화를 확인 return Wrap( direction: Axis.vertical, // 정렬 방향 alignment: WrapAlignment.start, // 정렬 방식 spacing: 10, // 상하(좌우) 공간 runSpacing: 10, // 좌우(상하) 공간 children: List.generate(9, (i)=>WsmBoxWidget(color:Colors.pink[(i+1)*100])) // WsmBoxWidget() ); } } ``` # 맺음말 * WRAP 을 통해 단말기 크기에 상관 없이 지정 영역에 위젯을 배열하여도 넘침 없이 화면을 손쉽게 구성할 수 있습니다. * 다음 시간에 또 만나요 ~ # 관련 글 * 플러터 금주의 위젯 : [1](/sct/@wonsama/191014-flutter-safearea) / [2](/sct/@wonsama/191014-flutter-expanded) * 플러터 라이브러리 투어 : [1](/dart/@wonsama/flutter-1-a-tour-of-the-dart-libraries) / [2](/dart/@wonsama/flutter-2-a-tour-of-the-dart-libraries) / [3](/dart/@wonsama/flutter-3-a-tour-of-the-dart-libraries) / [4](/dart/@wonsama/flutter-4-a-tour-of-the-dart-libraries) / [5](/dart/@wonsama/flutter-5-a-tour-of-the-dart-libraries) / [6](/dart/@wonsama/flutter-6-a-tour-of-the-dart-libraries) * 다트언어 투어 : [1](/dart/@wonsama/flutter-dart-1-a-tour-of-the-dart-language) / [2](/dart/@wonsama/flutter-dart-2-a-tour-of-the-dart-language) / [3](/dart/@wonsama/flutter-dart-3-a-tour-of-the-dart-language) / [4](/dart/@wonsama/flutter-dart-4-a-tour-of-the-dart-language) * 플러터 설치 - [MAC](/flutter/@wonsama/190508-install-flutter-in-mac) / [Windows](/dclick/@wonsama/flutter-001-in-windows--1539768203829)
post_id | 80,935,096 |
---|---|
author | wonsama |
permlink | 191016-flutter-wrap |
category | sct |
json_metadata | {"tags":["sct","sct-kr","sct-dev","zzan","jjm","busy","steemleo","palnet","liv"],"image":["https:\/\/steemitimages.com\/640x0\/https:\/\/cdn.steemitimages.com\/DQmdTnqpPybw54uskKRbEqPhWDaZhiyZuimU9J3feyNuGdZ\/%E1%84%89%E1%85%B3%E1%84%90%E1%85%B5%E1%86%B7%E1%84%8B%E1%85%B5%E1%86%BA%E1%84%91%E1%85%AD%E1%84%8C%E1%85%B5_190409.002.jpeg","https:\/\/cdn.steemitimages.com\/DQmU164SvJRoSxPFGYgGEpjM6P5xYfhD7Eab5vWGtkCgStz\/Screenshot_1571236171.png"],"app":"steemcoinpan\/0.1","format":"markdown","community":"busy","users":[],"links":[]} |
created | 2019-10-16 14:32:54 |
last_update | 2019-10-16 14:32:54 |
depth | 0 |
children | 1 |
net_rshares | 6,450,454,682,032 |
last_payout | 2019-10-23 14:32:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.808 SBD |
curator_payout_value | 0.763 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 2,412 |
author_reputation | 959,891,668,598,481 |
root_title | "[flutter] 플러터 금주의 위젯 #03 wrap" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
cupang | 0 | 350,469,493 | 90% | ||
oendertuerk | 0 | 12,439,981,762 | 5.33% | ||
happyberrysboy | 0 | 57,574,098,671 | 100% | ||
ai-channel | 0 | 925,340,431,696 | 27% | ||
stylegold | 0 | 1,556,946,005 | 100% | ||
virus707 | 0 | 230,391,813,934 | 1% | ||
realmankwon | 0 | 16,596,149,935 | 50% | ||
jinuking | 0 | 97,297,358,741 | 100% | ||
ukk | 0 | 22,582,208,051 | 100% | ||
cyan2017 | 0 | 168,447,823,117 | 100% | ||
y-o-u-t-h-m-e | 0 | 640,772,128,264 | 20% | ||
ravenruis | 0 | 1,713,755,613 | 6% | ||
philhyuntd | 0 | 3,355,749,471 | 50% | ||
ayogom | 0 | 34,414,713,376 | 100% | ||
vaansteam | 0 | 151,144,464,838 | 30% | ||
songbj | 0 | 1,627,666,754 | 100% | ||
stmdev | 0 | 141,953,703 | 1% | ||
alitavirgen | 0 | 3,979,234,958 | 2.5% | ||
leems | 0 | 1,735,384,851 | 50% | ||
jaydih | 0 | 182,289,481,475 | 5% | ||
andrewma | 0 | 0 | 0.2% | ||
kimseun | 0 | 32,154,793,963 | 5% | ||
kibumh | 0 | 271,651,828,324 | 50% | ||
anpigon | 0 | 220,213,741,586 | 100% | ||
newbijohn | 0 | 12,300,807,818 | 50% | ||
xxnoaxx | 0 | 3,753,694,313 | 100% | ||
kanadaramagi123 | 0 | 21,860,820,494 | 5% | ||
loveecho | 0 | 3,484,920,177 | 5% | ||
angelslake | 0 | 8,287,852,090 | 5% | ||
china.mobile | 0 | 243,768,856 | 5% | ||
wordit | 0 | 8,047,647,146 | 5% | ||
sj-jeong | 0 | 260,029,097,834 | 5% | ||
wondumyungga | 0 | 17,811,966,970 | 5% | ||
steemit-united | 0 | 37,356,125,977 | 8% | ||
aquawink | 0 | 21,052,224,406 | 5% | ||
eunsik.wallet | 0 | 774,515,013 | 100% | ||
teamcn-shop | 0 | 2,697,259,244 | 5.71% | ||
ringit | 0 | 8,620,458,500 | 5% | ||
coreabeforekorea | 0 | 137,645,743,875 | 5% | ||
talkative-bk | 0 | 203,555,908,798 | 5% | ||
noreference | 0 | 553,655,013 | 100% | ||
jjangjjanggirl | 0 | 720,914,189 | 100% | ||
j-car | 0 | 517,382,130,612 | 32% | ||
minigame | 0 | 962,723,455,383 | 4% | ||
whatdidshewear | 0 | 40,863,537,380 | 5% | ||
sjgod4018 | 0 | 33,399,077,343 | 5% | ||
mustard-seed | 0 | 16,522,721,081 | 5% | ||
jcarvoting | 0 | 2,176,870,504 | 80% | ||
ssc-token | 0 | 988,214,755,448 | 100% | ||
haxxdump | 0 | 6,501,429 | 5% | ||
cuifen | 0 | 543,912,548 | 100% | ||
zzan.adv | 0 | 352,645,904 | 25% | ||
zzan.co10 | 0 | 213,852,934 | 100% | ||
zzan.co18 | 0 | 308,887,310 | 100% | ||
naha.zzan | 0 | 610,974,301 | 100% | ||
cn-leo | 0 | 132,959,157 | 2% | ||
cn-sct | 0 | 1,762,272,861 | 2% | ||
onealfa.zzan | 0 | 189,958,815 | 100% | ||
perrymine | 0 | 13,722,741,824 | 5% | ||
tonimontana.leo | 0 | 344,550,881 | 5% | ||
jaykayw | 0 | 7,596,476,374 | 5% | ||
tengri | 0 | 36,620,192,213 | 4.97% | ||
thebilpcointrain | 0 | 56,804,492 | 1% | ||
bilpcoin.pay | 0 | 139,843,944 | 1% |
@tipu curate
post_id | 80,935,217 |
---|---|
author | kibumh |
permlink | pzh1zd |
category | sct |
json_metadata | {"tags":["sct"],"users":["tipu"],"app":"steemcoinpan\/0.1","canonical_url":"https:\/\/www.steemcoinpan.com\/@kibumh\/pzh1zd"} |
created | 2019-10-16 14:38:33 |
last_update | 2019-10-16 14:38:33 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2019-10-23 14:38:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 12 |
author_reputation | 291,369,738,669,853 |
root_title | "[flutter] 플러터 금주의 위젯 #03 wrap" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |