@@ -172,7 +172,7 @@ class _MyDialPadWidget extends State<DialPadWidget>
172172
173173 List <Widget > _buildDialPad () {
174174 Color ? textFieldColor =
175- Theme .of (context).textTheme.bodyMedium? .color? .withOpacity ( 0.5 );
175+ Theme .of (context).textTheme.bodyMedium? .color? .withValues (alpha : 0.5 );
176176 Color ? textFieldFill =
177177 Theme .of (context).buttonTheme.colorScheme? .surfaceContainerLowest;
178178 return [
@@ -190,15 +190,15 @@ class _MyDialPadWidget extends State<DialPadWidget>
190190 filled: true ,
191191 fillColor: textFieldFill,
192192 border: OutlineInputBorder (
193- borderSide: BorderSide (color: Colors .blue.withOpacity ( 0.5 )),
193+ borderSide: BorderSide (color: Colors .blue.withValues (alpha : 0.5 )),
194194 borderRadius: BorderRadius .circular (5 ),
195195 ),
196196 enabledBorder: OutlineInputBorder (
197- borderSide: BorderSide (color: Colors .blue.withOpacity ( 0.5 )),
197+ borderSide: BorderSide (color: Colors .blue.withValues (alpha : 0.5 )),
198198 borderRadius: BorderRadius .circular (5 ),
199199 ),
200200 focusedBorder: OutlineInputBorder (
201- borderSide: BorderSide (color: Colors .blue.withOpacity ( 0.5 )),
201+ borderSide: BorderSide (color: Colors .blue.withValues (alpha : 0.5 )),
202202 borderRadius: BorderRadius .circular (5 ),
203203 ),
204204 ),
0 commit comments