ホーム・トークルーム一覧・トークルーム画面の作成(再)#13
Conversation
PictoMki
left a comment
There was a problem hiding this comment.
先ほど電話で話した件コメントしました!
漏れてたらすみません・・。
| Widget room( | ||
| BuildContext context, | ||
| String name, | ||
| String image, | ||
| String lastMessage, | ||
| String time, | ||
| destination, | ||
| ) { |
There was a problem hiding this comment.
�ここもStatelessWidgetがいいです!
| Widget messageItem( | ||
| bool isMe, //IDとの一致で判定する予定 | ||
| BuildContext context, | ||
| String message, | ||
| String time, | ||
| bool isRead, | ||
| ) { |
There was a problem hiding this comment.
あといけそうだったらMesssgeモデルを作ってそれを渡すようにして欲しい!
| for (var info in infoList) | ||
| HomePageListTile( | ||
| info[0], | ||
| info[1], | ||
| info[2], |
There was a problem hiding this comment.
model使わないとここの可読性が低くなってしまうので、
model作りましょう!
お時間ある時に少し説明します!
| myGroups = [ | ||
| [ | ||
| "https://prtimes.jp/i/24101/70/resize/d24101-70-320114-0.jpg", | ||
| "Sport", | ||
| false, |
| myFriends=[ | ||
| [ | ||
| "https://pbs.twimg.com/profile_images/581025665727655936/9CnwZZ6j.jpg", | ||
| "Alex", | ||
| false, | ||
| ], |
| Widget homeAppBar() { | ||
| return AppBar( |
| room( | ||
| context, | ||
| "Sportssssssssssssssssssss", | ||
| "https://prtimes.jp/i/24101/70/resize/d24101-70-320114-0.jpg", | ||
| "hello,group!", | ||
| '23:04', | ||
| "", | ||
| ), |
| for (var info in infoList) | ||
| HomePageListTile( | ||
| info[0], | ||
| info[1], | ||
| info[2], | ||
| ), |
There was a problem hiding this comment.
早速すいません!
forEachのWidgetの返し方が分かりません!😢
| [ | ||
| "https://prtimes.jp/i/24101/70/resize/d24101-70-320114-0.jpg", | ||
| "Sport", | ||
| false, | ||
| ], |
There was a problem hiding this comment.
Groupモデルを作成してGroupを渡すようにして欲しい!
| myFriends=[ | ||
| [ | ||
| "https://pbs.twimg.com/profile_images/581025665727655936/9CnwZZ6j.jpg", | ||
| "Alex", | ||
| false, | ||
| ], |
There was a problem hiding this comment.
Userモデルを作成して、Userを渡すようにして欲しい!
|
Model定義待ちですね。 Interfaceだけでも定義しておくと全然扱いが楽だと思います。 |
|
レビューだと表現しきれない部分があったので、僕だったらこうするかなという実装をこちらにしています。 ソースにコメント残してるので確認お願いします! |
|
@tomoki-inoue1221 へ グループと友達一覧のふたつのリストだけなら、わざわざstatelessWidgetで用意する必要ないですか?🐲 |
どのStatekessWidgetのな話ですか? コメントにも確か残していますが、特に意味はないです。 |
HomePage、TalkPage、RoomPageにそれぞれ実装。リスト表示はListView.builderを使った。
| void changepage(int index) { | ||
| setState( |
There was a problem hiding this comment.
ここがキャメルケースになってないので、
changePageにしてください!
|
flutter format .コマンドは実行してますか? |
|
いい感じだと思います! |
|
マージン、フォントサイズあたりがハードコードされてますね。 早めにどこかに定義した方が良さそうです。 |
担当したissue
#5 #8
作成画面の見た目
(作成画面は自分が用意した中の最小デバイスでもレイアウトは問題なかったです)

device : Pixel 3 (Androidなので iOSと多少差はありますが、大きな違いはないと思います。)