mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Fixed most of the warnings
This commit is contained in:
parent
715ca0ab3f
commit
f7c3ba0374
87 changed files with 252 additions and 250 deletions
|
@ -5,9 +5,9 @@ class EncryptionErrorModal extends StatelessWidget {
|
|||
final String error;
|
||||
|
||||
const EncryptionErrorModal({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.error,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
|
@ -12,7 +12,7 @@ class EncryptionTextField extends StatelessWidget {
|
|||
final String? helperText;
|
||||
|
||||
const EncryptionTextField({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.enabled,
|
||||
required this.controller,
|
||||
required this.icon,
|
||||
|
@ -22,7 +22,7 @@ class EncryptionTextField extends StatelessWidget {
|
|||
this.keyboardType,
|
||||
this.multiline,
|
||||
this.helperText,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
|
@ -233,14 +233,14 @@ class _EncryptionSettingsState extends State<EncryptionSettings> {
|
|||
processModal.close();
|
||||
|
||||
if (result.successful == true) {
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.encryptionConfigSaved,
|
||||
color: Colors.green
|
||||
);
|
||||
}
|
||||
else {
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.encryptionConfigNotSaved,
|
||||
color: Colors.red
|
||||
|
@ -282,14 +282,14 @@ class _EncryptionSettingsState extends State<EncryptionSettings> {
|
|||
processModal.close();
|
||||
|
||||
if (result.successful == true) {
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.configurationResetSuccessfully,
|
||||
color: Colors.green
|
||||
);
|
||||
}
|
||||
else {
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.configurationResetError,
|
||||
color: Colors.red
|
||||
|
|
|
@ -5,9 +5,9 @@ class ErrorMessageEncryption extends StatelessWidget {
|
|||
final String errorMessage;
|
||||
|
||||
const ErrorMessageEncryption({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.errorMessage,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
|
@ -6,10 +6,10 @@ class EncryptionMasterSwitch extends StatelessWidget {
|
|||
final void Function(bool) onChange;
|
||||
|
||||
const EncryptionMasterSwitch({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.value,
|
||||
required this.onChange
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
|
@ -8,10 +8,10 @@ class Status extends StatelessWidget {
|
|||
final String label;
|
||||
|
||||
const Status({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.valid,
|
||||
required this.label
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue