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