質問編集履歴

1

ああああ

2023/01/04 09:32

投稿

bbiiq
bbiiq

スコア51

test CHANGED
File without changes
test CHANGED
@@ -47,11 +47,13 @@
47
47
  width: deviceWdth,
48
48
  child: Column(children: [
49
49
  TextButton(
50
+ //ここでメモ帳作成画面へ遷移
50
51
  onPressed: () async {
51
52
  await Navigator.push(
52
53
  context,
53
54
  MaterialPageRoute(
54
55
  builder: (context) => WriteDiary(null)));
56
+ //メモ帳作成後、戻ってきたタイミングで再描画
55
57
  model.reShowModalBottomSheet();
56
58
  },
57
59
  child: Text('新規メモ帳作成画面へ遷移'),
@@ -66,6 +68,7 @@
66
68
  // builder: (context, model, child) {
67
69
  new TextButton(
68
70
  onPressed: () async {
71
+ //ここで保存していたメモ帳(下書き)をメモ帳作成画面へ展開
69
72
  await Navigator.push(
70
73
  context,
71
74
  MaterialPageRoute(
@@ -76,6 +79,7 @@
76
79
  'null',
77
80
  null,
78
81
  )));
82
+ //メモ帳作成画面から戻り、画面再描画
79
83
  model.reShowModalBottomSheet();
80
84
  },
81
85
  child: Text('下書きの数だけButtonを作成'),