Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- github
- ngrok실행
- nextjs
- typescript react
- API 토큰
- npm styled-reset
- There isn’t anything to compare
- createGlobalStyle
- fetch
- Git
- next.js css
- dart 변수
- SCSS
- react env
- ngrok설치
- API token
- 컨디셔널 렌더링
- react
- styled components
- getModifierState
- github io
- git lab
- CSS
- bootstrap
- icon
- react typescript
- nextjs .env
- nextjs 설치
- rewrites
- input type=file
Archives
- Today
- Total
꾸준히 성장하는 개발자
[Flutter] TextField 높이 상위 위젯에 맞추기 / button 높이 넣기 본문
child: SizedBox(
height: 50,
child: TextFormField(
expands: true,
minLines: null,
maxLines: null,
style: const TextStyle(
fontWeight: FontWeight.w600,
fontSize: 16,
),
),
),
TextField를 사용할때 위아래 길이 맞추는 방법
expands :true 로 넣어주고
이렇게 넣으면 무조건 minLines, maxLines 는 null로 같이 넣어줘야 한다.
그럼 위 상위 위젯 높이와 일치하도록 들어가진다
TextButton등 Button 위젯들 높이 조정하기
높이를 조정해야 할때
ElevatedButton(
onPressed: () {},
style: ElevatedButton.styleFrom(
fixedSize:const Size.fromHeight(48) ,
minimumSize: const Size.fromHeight(50),
),
),
높이만 설정할때
fixedSize:const Size.fromHeight(48) ,
가로, 세로 길이 설정할때
fixedSize: const Size(width, height),
'Flutter' 카테고리의 다른 글
[Flutter] card-swiper (0) | 2023.02.27 |
---|---|
[Flutter] TextField 클릭시 overflow 대응 (0) | 2023.02.27 |
[Flutter] flutter 아래 가려지는 부분 (0) | 2023.02.24 |
[Flutter] button 들 기본 크기, padding값 없애기 (0) | 2023.01.31 |
[Flutter] Flutter button 좌우 길이 꽉차게 만들기 (0) | 2023.01.27 |