@@ -172,7 +172,7 @@ class _MyDialPadWidget extends State<DialPadWidget>
172
172
173
173
List <Widget > _buildDialPad () {
174
174
Color ? textFieldColor =
175
- Theme .of (context).textTheme.bodyMedium? .color? .withOpacity ( 0.5 );
175
+ Theme .of (context).textTheme.bodyMedium? .color? .withValues (alpha : 0.5 );
176
176
Color ? textFieldFill =
177
177
Theme .of (context).buttonTheme.colorScheme? .surfaceContainerLowest;
178
178
return [
@@ -190,15 +190,15 @@ class _MyDialPadWidget extends State<DialPadWidget>
190
190
filled: true ,
191
191
fillColor: textFieldFill,
192
192
border: OutlineInputBorder (
193
- borderSide: BorderSide (color: Colors .blue.withOpacity ( 0.5 )),
193
+ borderSide: BorderSide (color: Colors .blue.withValues (alpha : 0.5 )),
194
194
borderRadius: BorderRadius .circular (5 ),
195
195
),
196
196
enabledBorder: OutlineInputBorder (
197
- borderSide: BorderSide (color: Colors .blue.withOpacity ( 0.5 )),
197
+ borderSide: BorderSide (color: Colors .blue.withValues (alpha : 0.5 )),
198
198
borderRadius: BorderRadius .circular (5 ),
199
199
),
200
200
focusedBorder: OutlineInputBorder (
201
- borderSide: BorderSide (color: Colors .blue.withOpacity ( 0.5 )),
201
+ borderSide: BorderSide (color: Colors .blue.withValues (alpha : 0.5 )),
202
202
borderRadius: BorderRadius .circular (5 ),
203
203
),
204
204
),
0 commit comments