Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. showDialog(
  2. context: context,
  3. builder: (context) {
  4. Column(
  5. children: <Widget>[
  6. AlertDialog(
  7. title: Text("タイトル"),
  8. // コンテンツ領域
  9. content: SingleChildScrollView(
  10. child: ListBody(
  11. children: <Widget>[
  12. Column(
  13. crossAxisAlignment: CrossAxisAlignment.start,
  14. children: <Widget>[
  15. Row(
  16. mainAxisAlignment: MainAxisAlignment.center,
  17. children: <Widget>[
  18. FlutterLogo(
  19. size: 120.0,
  20. ),
  21. FlutterLogo(
  22. size: 120.0,
  23. colors: Colors.yellow,
  24. ),
  25. ],
  26. ),
  27. SizedBox(height: 16.0),
  28. Row(
  29. mainAxisAlignment: MainAxisAlignment.center,
  30. children: <Widget>[
  31. FlutterLogo(
  32. size: 120.0,
  33. colors: Colors.red,
  34. ),
  35. FlutterLogo(
  36. size: 120.0,
  37. colors: Colors.green,
  38. ),
  39. ],
  40. ),
  41. ],
  42. ),
  43. ],
  44. ),
  45. ),
  46. actions: <Widget>[
  47. FlatButton(
  48. child: Text("Cancel"),
  49. onPressed: () => Navigator.pop(context),
  50. ),
  51. FlatButton(
  52. child: Text("OK"),
  53. onPressed: () => Navigator.pop(context),
  54. ),
  55. ],
  56. // 角丸
  57. shape: RoundedRectangleBorder(
  58. borderRadius: BorderRadius.circular(20.0),
  59. ),
  60. ),
  61. ],
  62. );
  63. }
  64. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement