Skip to content

Commit

Permalink
Dart analyze check fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Wills committed Dec 18, 2024
1 parent 2ba5b69 commit be291a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions example/lib/src/dialpad.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class _MyDialPadWidget extends State<DialPadWidget>

List<Widget> _buildDialPad() {
Color? textFieldColor =
Theme.of(context).textTheme.bodyMedium?.color?.withOpacity(0.5);
Theme.of(context).textTheme.bodyMedium?.color?.withValues(alpha: 0.5);
Color? textFieldFill =
Theme.of(context).buttonTheme.colorScheme?.surfaceContainerLowest;
return [
Expand All @@ -190,15 +190,15 @@ class _MyDialPadWidget extends State<DialPadWidget>
filled: true,
fillColor: textFieldFill,
border: OutlineInputBorder(
borderSide: BorderSide(color: Colors.blue.withOpacity(0.5)),
borderSide: BorderSide(color: Colors.blue.withValues(alpha: 0.5)),
borderRadius: BorderRadius.circular(5),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.blue.withOpacity(0.5)),
borderSide: BorderSide(color: Colors.blue.withValues(alpha: 0.5)),
borderRadius: BorderRadius.circular(5),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.blue.withOpacity(0.5)),
borderSide: BorderSide(color: Colors.blue.withValues(alpha: 0.5)),
borderRadius: BorderRadius.circular(5),
),
),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/src/register.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class _MyRegisterWidget extends State<RegisterWidget>
borderRadius: BorderRadius.circular(5),
);
Color? textLabelColor =
Theme.of(context).textTheme.bodyMedium?.color?.withOpacity(0.5);
Theme.of(context).textTheme.bodyMedium?.color?.withValues(alpha: 0.5);
return Scaffold(
appBar: AppBar(
title: Text("SIP Account"),
Expand Down

0 comments on commit be291a3

Please sign in to comment.