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
- backjoon
- Flutter
- 네트워크
- JPA
- Java
- 자바스크립트
- 자바
- 자료구조
- spring
- 프로그래머스
- 리눅스
- javascript
- springboot
- CS지식
- 백준
- Spring Security
- baekjoon
- 데이터베이스
- CS
- 파이썬
- postgresql
- 시큐리티
- 스프링 부트 쇼핑몰 프로젝트 with JPA
- Oracle
- 스프링
- 플러터
- DB
- 데이터
- 스프링부트
- python
Archives
- Today
- Total
Jin's Dev Story
[Flutter] 페이지 나누기 - Navigator 본문
Navigator.push()
IconButton(
icon: Icon(Icons.add_box_outlined),
onPressed: (){
Navigator.push(
context,
MaterialPageRoute(builder: (context) => Text('안녕')),
);
},
),
⇒ 란?
- return 하나 밖에 없으면 중괄호와 return 동시에 생략 가능
(context) => Text('안녕')
(context) { return Text('안녕'); }
Navigator.pop(context);
- 현재 열린 페이지 닫아주기
'Web & Android > Flutter' 카테고리의 다른 글
[Flutter] 폰에 저장된 이미지 가져오기 (0) | 2023.09.22 |
---|---|
[Flutter] 페이지 나누기 - 라우터 사용 (/) (0) | 2023.09.22 |
[Flutter] 페이지 나누기 - Tab (0) | 2023.09.22 |
[Flutter] 스크롤 위치 파악하기 (0) | 2023.09.22 |
[Flutter] http 패키지로 GET 요청 (0) | 2023.09.22 |