Skip to content

Commit

Permalink
fix analyzer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Sep 11, 2024
1 parent 43c4960 commit 8f58f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flutter/example/lib/user_feedback_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class _SentryLogo extends StatelessWidget {
var color = Colors.white;
final brightenss = Theme.of(context).brightness;
if (brightenss == Brightness.light) {
color = const Color(0xff362d59).withOpacity(1.0);
color = const Color(0xff362d59).withValues(alpha: 1.0);

Check failure on line 146 in flutter/example/lib/user_feedback_dialog.dart

View workflow job for this annotation

GitHub Actions / analyze / analyze

The method 'withValues' isn't defined for the type 'Color'.

Try correcting the name to the name of an existing method, or defining a method named 'withValues'. See https://dart.dev/diagnostics/undefined_method to learn more about this problem.
}

return FittedBox(
Expand Down

0 comments on commit 8f58f3c

Please sign in to comment.