[flutter] 화면이동

Jinno·2023년 1월 31일
0

Flutter

목록 보기
17/19

화면 이동

ElevatedButton(
            onPressed: () {
              Navigator.of(context).push(
                MaterialPageRoute(
                  builder: (_) => ScreenNumber2(),
                ),
              );
            },
            child: Text('Move to Screen #2'),
          )
profile
Innovation, 기록용

0개의 댓글