Skip to content

Commit

Permalink
remove usage of deprecated withOpacity function
Browse files Browse the repository at this point in the history
From the Flutter migration guide: https://docs.flutter.dev/release/breaking-changes/wide-gamut-framework#opacity

the usage of the `withOpacity` function will be removed in favor of floating point
  • Loading branch information
exoad authored Jan 4, 2025
1 parent 978d1ee commit 0c96ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitsdojo_window/lib/src/widgets/window_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class WindowButton extends StatelessWidget {
(appWindow.titleBarHeight - borderSize) / 3 - (borderSize / 2);
// Used when buttonContext.backgroundColor is null, allowing the AnimatedContainer to fade-out smoothly.
var fadeOutColor =
getBackgroundColor(MouseState()..isMouseOver = true).withOpacity(0);
getBackgroundColor(MouseState()..isMouseOver = true).withAlpha(0);
var padding = this.padding ?? EdgeInsets.all(defaultPadding);
var animationMs =
mouseState.isMouseOver ? (animate ? 100 : 0) : (animate ? 200 : 0);
Expand Down

0 comments on commit 0c96ef7

Please sign in to comment.