mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: sftp rename
This commit is contained in:
@@ -245,10 +245,8 @@ class _LocalStoragePageState extends State<LocalStoragePage> {
|
||||
}
|
||||
final result = await AppRoute.editor(
|
||||
path: file.absolute.path,
|
||||
).go<String>(context);
|
||||
final f = File(file.absolute.path);
|
||||
if (result != null) {
|
||||
f.writeAsString(result);
|
||||
).go<bool>(context);
|
||||
if (result == true) {
|
||||
context.showSnackBar(l10n.saved);
|
||||
setState(() {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user