Code improvements

This commit is contained in:
Juan Gilsanz Polo
2025-04-03 22:26:14 +02:00
parent 7982644c23
commit 93ebb1de40
17 changed files with 114 additions and 107 deletions

View File

@@ -5,7 +5,7 @@ import 'package:linkdy/i18n/strings.g.dart';
import 'package:linkdy/providers/api_client.provider.dart';
class DisconnectModal extends ConsumerWidget {
const DisconnectModal({Key? key}) : super(key: key);
const DisconnectModal({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {

View File

@@ -101,8 +101,8 @@ class GeneralSettings extends ConsumerWidget {
t.settings.generalSettings.disconnectFromServer,
),
style: const ButtonStyle(
foregroundColor: MaterialStatePropertyAll(Colors.white),
backgroundColor: MaterialStatePropertyAll(Colors.red),
foregroundColor: WidgetStatePropertyAll(Colors.white),
backgroundColor: WidgetStatePropertyAll(Colors.red),
),
),
],