Fix some deprecation warnings
This commit is contained in:
parent
846ef5bf1c
commit
09f68e7a6e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user