From 09f68e7a6ef5b97d5b975532ac79135f3fabf1f3 Mon Sep 17 00:00:00 2001 From: lemoer Date: Sun, 6 Jul 2025 15:46:12 +0200 Subject: [PATCH] Fix some deprecation warnings --- lib/main.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index a6b972d..dca254e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -101,7 +101,6 @@ class _MyHomePageState extends State { ); 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;