mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-07 07:07:46 +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
|
@ -50,14 +50,15 @@ void showDeleteModal({
|
|||
required BuildContext context,
|
||||
required Server server
|
||||
}) async {
|
||||
await Future.delayed(const Duration(seconds: 0), () => {
|
||||
await Future.delayed(const Duration(seconds: 0), () {
|
||||
if (!context.mounted) return;
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => DeleteModal(
|
||||
serverToDelete: server,
|
||||
),
|
||||
barrierDismissible: false
|
||||
)
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -133,7 +134,7 @@ void connectToServer({
|
|||
process.close();
|
||||
if (!context.mounted) return;
|
||||
final appConfigProvider = Provider.of<AppConfigProvider>(context, listen: false);
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.cannotConnect,
|
||||
color: Colors.red
|
||||
|
@ -150,14 +151,14 @@ void setDefaultServer({
|
|||
if (!context.mounted) return;
|
||||
final appConfigProvider = Provider.of<AppConfigProvider>(context, listen: false);
|
||||
if (result == null) {
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.connectionDefaultSuccessfully,
|
||||
color: Colors.green
|
||||
);
|
||||
}
|
||||
else {
|
||||
showSnacbkar(
|
||||
showSnackbar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.connectionDefaultFailed,
|
||||
color: Colors.red
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue