Code improvements
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user