mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 12:24:47 +00:00
Added servers list and edit server
This commit is contained in:
parent
3acfc7c5a5
commit
59e9917a4b
12 changed files with 777 additions and 14 deletions
31
lib/classes/process_modal.dart
Normal file
31
lib/classes/process_modal.dart
Normal file
|
@ -0,0 +1,31 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:adguard_home_manager/widgets/process_dialog.dart';
|
||||
|
||||
class ProcessModal {
|
||||
late BuildContext context;
|
||||
|
||||
ProcessModal({
|
||||
required this.context
|
||||
});
|
||||
|
||||
void open(String message) async {
|
||||
await Future.delayed(const Duration(seconds: 0), () => {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (c) {
|
||||
context = c;
|
||||
return ProcessDialog(
|
||||
message: message,
|
||||
);
|
||||
},
|
||||
barrierDismissible: false,
|
||||
useSafeArea: true,
|
||||
)
|
||||
});
|
||||
}
|
||||
|
||||
void close() {
|
||||
Navigator.pop(context);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue