File tree 7 files changed +23
-11
lines changed
7 files changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ class _HomePageState extends State<HomePage> {
156
156
primaryColorLight: Colors .white,
157
157
primaryColorDark: navyBlue,
158
158
textTheme: Theme .of (context).textTheme.copyWith (
159
- bodyText2 : TextStyle (
159
+ bodyMedium : TextStyle (
160
160
color: lightBlue,
161
161
),
162
162
),
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ class _BirthdayWidgetState extends BaseState<BirthdayWidget> {
45
45
textAlign: TextAlign .center,
46
46
style: TextStyle (
47
47
fontWeight: FontWeight .w500,
48
- color: context.textTheme ().headline6? .color,
48
+ // color: context.textTheme().headline6?.color,
49
+ color: Theme .of (context).textTheme.headlineSmall? .color,
49
50
fontSize: 15.0 ,
50
51
),
51
52
),
Original file line number Diff line number Diff line change @@ -188,7 +188,11 @@ class _CheckoutWidgetState extends BaseState<CheckoutWidget>
188
188
Text (
189
189
'Pay' ,
190
190
style: TextStyle (
191
- fontSize: 14.0 , color: context.textTheme ().headline1? .color),
191
+ fontSize: 14.0 ,
192
+ // color: context.textTheme().headline1?.color,
193
+
194
+ color: Theme .of (context).textTheme.headlineLarge? .color,
195
+ ),
192
196
),
193
197
SizedBox (
194
198
width: 5.0 ,
@@ -197,7 +201,9 @@ class _CheckoutWidgetState extends BaseState<CheckoutWidget>
197
201
child: Text (Utils .formatAmount (_charge.amount),
198
202
style: TextStyle (
199
203
fontSize: 15.0 ,
200
- color: context.textTheme ().headline6? .color,
204
+ // color: context.textTheme().headline6?.color,
205
+ color:
206
+ Theme .of (context).textTheme.headlineSmall? .color,
201
207
fontWeight: FontWeight .bold)))
202
208
],
203
209
)
@@ -421,7 +427,7 @@ class _CheckoutWidgetState extends BaseState<CheckoutWidget>
421
427
if (_response! .card != null ) {
422
428
_response! .card! .nullifyNumber ();
423
429
}
424
- Navigator .of (context).pop (_response);
430
+ Navigator .of (context).pop (_response);
425
431
},
426
432
);
427
433
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ class CustomAlertDialog extends StatelessWidget {
33
33
children.add (new Padding (
34
34
padding: titlePadding! ,
35
35
child: new DefaultTextStyle (
36
- style: context.textTheme ().headline6! ,
36
+ // style: context.textTheme().headline6!,
37
+ style: context.textTheme ().headlineSmall! ,
37
38
child: new Semantics (child: title, namesRoute: true ),
38
39
),
39
40
));
@@ -43,7 +44,7 @@ class CustomAlertDialog extends StatelessWidget {
43
44
child: new Padding (
44
45
padding: contentPadding,
45
46
child: new DefaultTextStyle (
46
- style: context.textTheme ().subtitle1 ! ,
47
+ style: context.textTheme ().titleSmall ! ,
47
48
child: content,
48
49
),
49
50
),
Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ class _OtpWidgetState extends BaseState<OtpWidget> {
42
42
textAlign: TextAlign .center,
43
43
style: TextStyle (
44
44
fontWeight: FontWeight .w500,
45
- color: context.textTheme ().headline6? .color,
45
+ // color: context.textTheme().headline6?.color,
46
+ color: Theme .of (context).textTheme.headlineSmall? .color,
46
47
fontSize: 15.0 ,
47
48
),
48
49
),
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ class _PinWidgetState extends BaseState<PinWidget> {
38
38
textAlign: TextAlign .center,
39
39
style: TextStyle (
40
40
fontWeight: FontWeight .w500,
41
- color: context.textTheme ().headline6? .color,
41
+ color: Theme .of (context).textTheme.headlineSmall? .color,
42
+ // color: context.textTheme().headline6?.color,
42
43
fontSize: 15.0 ,
43
44
),
44
45
),
Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ class _SuccessfulWidgetState extends State<SuccessfulWidget>
86
86
Text (
87
87
'Payment Successful' ,
88
88
style: TextStyle (
89
- color: context.textTheme ().headline6? .color,
89
+ // color: context.textTheme().headline6?.color,
90
+ color: Theme .of (context).textTheme.headlineSmall? .color,
90
91
fontWeight: FontWeight .w500,
91
92
fontSize: 16.0 ,
92
93
),
@@ -98,7 +99,8 @@ class _SuccessfulWidgetState extends State<SuccessfulWidget>
98
99
? new Container ()
99
100
: new Text ('You paid ${Utils .formatAmount (widget .amount )}' ,
100
101
style: TextStyle (
101
- color: context.textTheme ().headline6? .color,
102
+ // color: context.textTheme().headline6?.color,
103
+ color: Theme .of (context).textTheme.headlineSmall? .color,
102
104
fontWeight: FontWeight .normal,
103
105
fontSize: 14.0 ,
104
106
)),
You can’t perform that action at this time.
0 commit comments