質問編集履歴
1
codeの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -305,3 +305,53 @@
|
|
305
305
|
|
306
306
|
|
307
307
|
iOS,Androidどちらもエラーが発生します。
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
###試したこと
|
312
|
+
|
313
|
+
show_alert_dialog.dart内を変更
|
314
|
+
|
315
|
+
```ここに言語を入力
|
316
|
+
|
317
|
+
showDialog(
|
318
|
+
|
319
|
+
context: context,
|
320
|
+
|
321
|
+
builder: (context) => AlertDialog(
|
322
|
+
|
323
|
+
title: Text(title),
|
324
|
+
|
325
|
+
***Containerでラップして高さと幅を持たせる***
|
326
|
+
|
327
|
+
content: Container(width: 300, height: 400, child: Text(content)),
|
328
|
+
|
329
|
+
actions: <Widget>[
|
330
|
+
|
331
|
+
if (cancelActionText != null) ...{
|
332
|
+
|
333
|
+
TextButton(
|
334
|
+
|
335
|
+
onPressed: () => Navigator.of(context).pop(false),
|
336
|
+
|
337
|
+
child: Text(cancelActionText),
|
338
|
+
|
339
|
+
),
|
340
|
+
|
341
|
+
},
|
342
|
+
|
343
|
+
TextButton(
|
344
|
+
|
345
|
+
onPressed: () => Navigator.of(context).pop(true),
|
346
|
+
|
347
|
+
child: Text(defaultActionText),
|
348
|
+
|
349
|
+
),
|
350
|
+
|
351
|
+
],
|
352
|
+
|
353
|
+
),
|
354
|
+
|
355
|
+
);
|
356
|
+
|
357
|
+
```
|