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】次の画面に遷移する(Navigator.of(context).push))

Posted at

やりたいこと

  • 親画面 TitleListView から子画面 EditTitleViewに遷移したい。

解決策

  • Navigator.of(context).pushを用いる
title_list_view.dart
Navigator.of(context).push(
    MaterialPageRoute(
      builder: (context) {
        return EditTitleView();
      },
    ),
);
  • 画面遷移メソッドには他にも色々な画面遷移の指定方法があり、たとえば共通のルートパスを指定しおいて特定のパスに移動することも可能であったりする。
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?