@@ -8,12 +8,13 @@ YYDialog YYAlertDialog1(BuildContext context) {
8
8
..borderRadius = 4.0
9
9
..text (
10
10
padding: EdgeInsets .all (18.0 ),
11
- text: "Dialog Header " ,
11
+ text: "Dialog header " ,
12
12
color: Colors .black,
13
- fontSize: 16.0 ,
13
+ fontSize: 18.0 ,
14
+ fontWeight: FontWeight .w500,
14
15
)
15
16
..text (
16
- padding: EdgeInsets .only (left: 18.0 ),
17
+ padding: EdgeInsets .only (left: 18.0 , right : 18.0 ),
17
18
text: "Dialog body text" ,
18
19
color: Colors .grey[500 ],
19
20
)
@@ -54,6 +55,37 @@ YYDialog YYAlertDialog2(BuildContext context) {
54
55
..show ();
55
56
}
56
57
58
+ YYDialog YYAlertDialog3 (BuildContext context) {
59
+ return YYDialog ().build (context)
60
+ ..width = 260
61
+ ..borderRadius = 4.0
62
+ ..text (
63
+ padding: EdgeInsets .all (18.0 ),
64
+ text: "Use location service?" ,
65
+ color: Colors .black,
66
+ fontSize: 18.0 ,
67
+ fontWeight: FontWeight .w500,
68
+ )
69
+ ..text (
70
+ padding: EdgeInsets .only (left: 18.0 , right: 18.0 ),
71
+ text:
72
+ "Let us help apps determine location. This means sending anonymous location data to us, even when no apps are running." ,
73
+ color: Colors .grey[500 ],
74
+ fontSize: 15.0 ,
75
+ )
76
+ ..doubleButton (
77
+ padding: EdgeInsets .only (top: 24.0 ),
78
+ mainAxisAlignment: MainAxisAlignment .end,
79
+ text1: "DISAGREE" ,
80
+ color1: Colors .deepPurpleAccent,
81
+ fontSize1: 14.0 ,
82
+ text2: "AGREE" ,
83
+ color2: Colors .deepPurpleAccent,
84
+ fontSize2: 14.0 ,
85
+ )
86
+ ..show ();
87
+ }
88
+
57
89
YYDialog YYListTileDialog1 (BuildContext context) {
58
90
return YYDialog ().build (context)
59
91
..width = 280
@@ -63,6 +95,7 @@ YYDialog YYListTileDialog1(BuildContext context) {
63
95
text: "Set backup account" ,
64
96
color: Colors .black,
65
97
fontSize: 18.0 ,
98
+ fontWeight: FontWeight .w500,
66
99
)
67
100
..listTile (
68
101
padding: EdgeInsets .fromLTRB (16.0 , 6.0 , 16.0 , 6.0 ),
@@ -117,6 +150,7 @@ YYDialog YYListViewDialog1(BuildContext context) {
117
150
text: "Phone ringtone" ,
118
151
color: Colors .black,
119
152
fontSize: 18.0 ,
153
+ fontWeight: FontWeight .w500,
120
154
)
121
155
..divider ()
122
156
..doubleButton (
0 commit comments