12/23 flutter

사랑이란 멜론·2023년 12월 23일

flutter 공부

목록 보기
2/14

margin 주는 법
margin: EdgeInsets.all(10) 이런 식으로 주면 됨
pagging도 동일

패딩이 없으면 좌상단부터 출력됨
EdgeInsets.fromLTRB(0,0,0,0)

decoration 안에 짤짤이 속성을 넣어주면 됨

decoration:BoxDecoration(
border:Border.all(color:Colors.black)
)

color도 boxdecoration안에 sjgrl
꾸미려면 이걸 잘 보자

BOX 정렬은
center
Align(alignment: Alignment.bottomCenter )
ㄴ 등등

container의 width를 double.infinity로 설정하면 가로로 꽉참

타이포그래피
bod:SizedBox(
child:Text('안녕하셍',style:TextStyle(
color:Colors.red
Color(0xffaaaaaa)
Color.fromRGBO(r,g,b,oppacity),
fontSize:30,
fontWeight:FontWeight.w100부터900

)))

Icon(Icon.star, color: ,size: )

TextButton()
IconButton()
ElevatedButton()
셋 중 하나

child:,onPressed:(){} 필수
style:ButtonStyle()

AppBar
-title
-leading//좌상단
-actions:[]//우상단

appbar의 action에는 머 row 이런건 안되나봄

appbar의 leading크기조절은 leadingWidth속성이 따로 존재하니 알고 있도록
내부요소의 크기가 크다고 그 범위를 자동으로 늘려주지 않음..
코틀린이 더 나은거같은데?
matchparent나 wrapcontent이런 건 없나?
https://stackoverflow.com/questions/42257668/the-equivalent-of-wrap-content-and-match-parent-in-flutter
여기 있는데 오늘 피곤해서 내일 할래

오늘을 여기까지만 ㅋㅋ

profile
은 여기 있어요

0개의 댓글