feat: implement dialog callback

This commit is contained in:
Kingtous
2023-05-08 12:34:19 +08:00
parent 19f81ad317
commit 77fa807b57
55 changed files with 734 additions and 554 deletions

View File

@@ -643,7 +643,7 @@ class _FileManagerViewState extends State<FileManagerView> {
MenuButton(
onPressed: () {
final name = TextEditingController();
_ffi.dialogManager.show((setState, close) {
_ffi.dialogManager.show((setState, close, context) {
submit() {
if (name.value.text.isNotEmpty) {
controller.createDir(PathUtil.join(