-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigatorの整理 #14
Navigatorの整理 #14
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
基本良さそうなのでapproveです!
修正はおまかせします!
MaterialPageRoute( | ||
builder: (context) => RoomPage(room.name), | ||
), | ||
'/roomPage', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここ、ハードコーディングだとタイポする可能性あるかなーと思ったんですが、FlutterではConstとかで定義するんですかね?
優先順位的にそんなになので対応はおまかせします!
lib/ui/pages/profile.dart
Outdated
@@ -76,7 +76,8 @@ class _ProfilePage extends StatelessWidget { | |||
), | |||
label: Text("編集する"), | |||
onPressed: () { | |||
Navigator.pushNamed<void>(context, "/profileEditPage"); | |||
Navigator.pushNamed<void>(context, "/profileEditPage", | |||
arguments: "test"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
細かいですけど、�lib/ui/molecules/talk/list_tile.dart
とインデント合わせるために "test",
にしたさあります(笑)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
間違いないです笑
修正します!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここらへんもlinter rule 入れたいですね〜時間があればやります〜
インデントの部分のみ修正してpushしました! |
issue
#12
やったこと
lib/main.dart
にページルートを定義した。Navigator.push
をNavigator.pushNamed
に修正した。Navigator.pushNamed
でargumentsとしてデータを渡すようにした。※
profile_edit.dart
にも変更を加えたText
をTextField
とし、名前の入力をできるようにした。ProfileImage
にFlatButton
を親としてつけ、関数を実行できるようにした。