Fix some deprecation warnings

This commit is contained in:
lemoer 2025-07-06 15:46:12 +02:00
parent 846ef5bf1c
commit 09f68e7a6e

View File

@ -101,7 +101,6 @@ class _MyHomePageState extends State<MyHomePage> {
);
final uptime = await client.run('uptime');
print(uptime);
setState(() {
_output = utf8.decode(uptime);
});
@ -672,13 +671,13 @@ class KeepOrDeleteKey extends StatelessWidget {
);
final buttonStyleKeepActive = ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.blue),
foregroundColor: MaterialStateProperty.all(Colors.white),
backgroundColor: WidgetStateProperty.all(Colors.blue),
foregroundColor: WidgetStateProperty.all(Colors.white),
);
final buttonStyleDeleteActive = ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.red),
foregroundColor: MaterialStateProperty.all(Colors.white),
backgroundColor: WidgetStateProperty.all(Colors.red),
foregroundColor: WidgetStateProperty.all(Colors.white),
);
ButtonStyle? buttonStyleKeep;