- Today
- Total
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Redux
- 주식차트
- nextjs
- 차트만들기
- 비전공자
- 3주차
- typescript
- error
- apollo
- Flutter
- 코인
- websocket
- 채팅
- Firebase
- 차트
- react
- typeorm
- 차트구현
- 에러
- 항해99
- rtk
- 주식
- graphql
- chart
- nestjs
- Coin
- 코인차트
- 리액트
- API
- javascript
Act99 기술블로그
[비전공자] flutter / Tabbar in appBar / 앱 바에 탭 바를 넣고 싶을 때, bottom 을 사용하지 않고 앱바에 탭바를 넣고 싶을 때 본문
[비전공자] flutter / Tabbar in appBar / 앱 바에 탭 바를 넣고 싶을 때, bottom 을 사용하지 않고 앱바에 탭바를 넣고 싶을 때
Act99 2020. 11. 25. 10:48플러터 Scaffod -> appBar 에서 탭바를 넣고 싶을 땐, bottom 을 호출하여 탭바를 넣을 수 있다.
하지만 앱바의 사이즈가 커지기 때문에 좀 불편....하다.
이 때, PreferredSize를 이용하면 UI 가 그나마 이쁘게 나온다.
(action을 호출해 사용해봤지만 상당히 불안정하기 때문에 이 방법이 그나마 낫다.)
------------------------------------------------------------------
appBar: PreferredSize(
preferredSize: Size.fromHeight(height * 0.155),
child: AppBar(
backgroundColor: Colors.transparent,
shadowColor: Colors.transparent,
bottom: TabBar(
indicator: BoxDecoration(
border: Border(
bottom: BorderSide(
color: Theme.of(context).shadowColor))),
tabs: [
Container(
height: height * 0.08,
child: new Text("Today's schedule")),
Container(
height: height * 0.08,
child: new Text("All notes")),
],
),
),
),
---------------------------------------
'개발팁저장소 > flutter' 카테고리의 다른 글
Flarebomb 앱을 만들었습니다. (0) | 2020.12.14 |
---|---|
Time Time Time 앱을 만들었습니다. (0) | 2020.12.09 |
[비전공자] flutter+android studio 플러터 앱 버전 업데이트 방법 (1) | 2020.11.20 |
[비전공자] 안드로이드 스튜디오를 이용하여 Flutter 앱 구글플레이 스토어 배포하기 (Flutter + Google Play Store with Android Studio) (0) | 2020.11.19 |
[비전공자] Flutter + Firebase | 사용자 계정 정보를 Firestore에 저장시키고 싶을 때 방법 및 오류시 꿀팁 (0) | 2020.11.19 |