mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-07 23:27:49 +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
|
@ -157,7 +157,7 @@ class _AddServerModalState extends State<AddServerModal> {
|
|||
if (result != AuthStatus.success) {
|
||||
cancelConnecting();
|
||||
if (mounted) {
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: getErrorMessage(result),
|
||||
color: Colors.red
|
||||
|
@ -206,7 +206,7 @@ class _AddServerModalState extends State<AddServerModal> {
|
|||
if (serverCreated != null) {
|
||||
if (mounted) setState(() => isConnecting = false);
|
||||
if (mounted) {
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.connectionNotCreated,
|
||||
color: Colors.red
|
||||
|
@ -256,7 +256,7 @@ class _AddServerModalState extends State<AddServerModal> {
|
|||
if (result != AuthStatus.success) {
|
||||
cancelConnecting();
|
||||
if (mounted) {
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: getErrorMessage(result),
|
||||
color: Colors.red
|
||||
|
@ -306,7 +306,7 @@ class _AddServerModalState extends State<AddServerModal> {
|
|||
)
|
||||
);
|
||||
if (mounted) {
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.connectionNotCreated,
|
||||
color: Colors.red
|
||||
|
|
|
@ -13,7 +13,7 @@ class FormTextField extends StatelessWidget {
|
|||
final bool isConnecting;
|
||||
|
||||
const FormTextField({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.label,
|
||||
required this.controller,
|
||||
this.error,
|
||||
|
@ -24,7 +24,7 @@ class FormTextField extends StatelessWidget {
|
|||
this.hintText,
|
||||
this.helperText,
|
||||
required this.isConnecting
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue