Skip to content

Commit

Permalink
[gui] replace some deprecated styling classes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-toterman committed Dec 10, 2024
1 parent b9be1ef commit fa6c578
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/client/gui/lib/vm_details/terminal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@ class _VmTerminalState extends ConsumerState<VmTerminal> {
}));

final buttonStyle = ButtonStyle(
foregroundColor: MaterialStateColor.resolveWith((states) {
final disabled = states.contains(MaterialState.disabled);
foregroundColor: WidgetStateColor.resolveWith((states) {
final disabled = states.contains(WidgetState.disabled);
return Colors.white.withOpacity(disabled ? 0.5 : 1.0);
}),
side: MaterialStateBorderSide.resolveWith((states) {
final disabled = states.contains(MaterialState.disabled);
side: WidgetStateBorderSide.resolveWith((states) {
final disabled = states.contains(WidgetState.disabled);
var color = Colors.white.withOpacity(disabled ? 0.5 : 1.0);
return BorderSide(color: color);
}),
Expand Down

0 comments on commit fa6c578

Please sign in to comment.