Skip to content

Commit be291a3

Browse files
author
Mikael Wills
committed
Dart analyze check fixes
1 parent 2ba5b69 commit be291a3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

example/lib/src/dialpad.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
),

example/lib/src/register.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class _MyRegisterWidget extends State<RegisterWidget>
151151
borderRadius: BorderRadius.circular(5),
152152
);
153153
Color? textLabelColor =
154-
Theme.of(context).textTheme.bodyMedium?.color?.withOpacity(0.5);
154+
Theme.of(context).textTheme.bodyMedium?.color?.withValues(alpha: 0.5);
155155
return Scaffold(
156156
appBar: AppBar(
157157
title: Text("SIP Account"),

0 commit comments

Comments
 (0)