@@ -52,23 +52,46 @@ showAlertDialog(BuildContext context) {
5252 }),
5353 ],
5454 ),
55- Text ("2、gravity" ),
55+ Text ("2、dialog gravity" ),
5656 Row (
5757 children: < Widget > [
5858 makeTextButton ("bottom" , () {
59- YYAlertDialogWithGravity (context, null , Gravity .bottom);
59+ YYAlertDialogWithGravity (
60+ context: context,
61+ gravity: Gravity .bottom,
62+ );
6063 }),
6164 makeTextButton ("top" , () {
62- YYAlertDialogWithGravity (context, null , Gravity .top);
65+ YYAlertDialogWithGravity (
66+ context: context,
67+ gravity: Gravity .top,
68+ );
6369 }),
6470 makeTextButton ("left" , () {
65- YYAlertDialogWithGravity (context, 250.0 , Gravity .left);
71+ YYAlertDialogWithGravity (
72+ context: context,
73+ width: 250.0 ,
74+ gravity: Gravity .left,
75+ );
6676 }),
6777 makeTextButton ("right" , () {
68- YYAlertDialogWithGravity (context, 250.0 , Gravity .right);
78+ YYAlertDialogWithGravity (
79+ context: context,
80+ width: 250.0 ,
81+ gravity: Gravity .right,
82+ );
6983 }),
7084 ],
7185 ),
86+ Text ("3、double button gravity" ),
87+ Row (
88+ children: < Widget > [
89+ makeTextButton ("bottom" , () {}),
90+ makeTextButton ("top" , () {}),
91+ makeTextButton ("left" , () {}),
92+ makeTextButton ("right" , () {}),
93+ ],
94+ ),
7295 ],
7396 ),
7497 );
0 commit comments