0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Flutterでの画面遷移

Posted at

Navigator, MaterialPageRoute
onPressed:(){}の波括弧の中にルーティングを記述して、画面遷移を実現する。

画面の移動

Navigator.of(context).push(
  MaterialPageRoute(builder: (context) {
      // 遷移先の画面のウィジットを指定
      return MoveToPage();
  }),
);

前画面に戻る

Navigator.of(context).pop();
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?