質問編集履歴
1
修正依頼があったので変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
onTap: ()async{
|
50
50
|
|
51
|
-
await
|
51
|
+
await ViewBook(context , model , todo);
|
52
52
|
|
53
53
|
Navigator.push(
|
54
54
|
|
@@ -190,6 +190,14 @@
|
|
190
190
|
|
191
191
|
}),
|
192
192
|
|
193
|
+
Future ViewBook(BuildContext context , TeaProvider model , Todo todo) async {
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
await model.getTapmodel(todo);
|
198
|
+
|
199
|
+
}
|
200
|
+
|
193
201
|
```
|
194
202
|
|
195
203
|
⓶
|
@@ -320,10 +328,44 @@
|
|
320
328
|
|
321
329
|
}
|
322
330
|
|
323
|
-
|
324
|
-
|
325
331
|
```
|
326
332
|
|
333
|
+
```dart
|
334
|
+
|
335
|
+
class Todo {
|
336
|
+
|
337
|
+
Todo(DocumentSnapshot doc){
|
338
|
+
|
339
|
+
this.documentID = doc.id;
|
340
|
+
|
341
|
+
this.title = doc['title'];
|
342
|
+
|
343
|
+
this.recipe = doc['recipe'];
|
344
|
+
|
345
|
+
this.material = doc['material'];
|
346
|
+
|
347
|
+
this.time = doc['time'];
|
348
|
+
|
349
|
+
this.name = doc['name'];
|
350
|
+
|
351
|
+
}
|
352
|
+
|
353
|
+
String documentID;
|
354
|
+
|
355
|
+
String time;
|
356
|
+
|
357
|
+
String material;
|
358
|
+
|
359
|
+
String recipe;
|
360
|
+
|
361
|
+
String title;
|
362
|
+
|
363
|
+
String name;
|
364
|
+
|
365
|
+
}
|
366
|
+
|
367
|
+
```
|
368
|
+
|
327
369
|
![イメージ説明](d17f6ad7e6de21e6cdfff97adb313894.png)
|
328
370
|
|
329
371
|
![イメージ説明](4d2ed52fdebe6c1ad79ea6ff6640c994.jpeg)
|