|
@@ -1,8 +1,6 @@
|
|
|
import 'dart:io';
|
|
|
-import 'dart:ui';
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
-import 'package:flutter/src/widgets/framework.dart';
|
|
|
import 'package:neofilemanager/Item/Mode.dart';
|
|
|
import 'package:neofilemanager/OperationButtom/IOptButton.dart';
|
|
|
import 'package:neofilemanager/Opertaion/Operation.dart';
|
|
@@ -14,14 +12,13 @@ class RenameOperationButton extends IOptButton {
|
|
|
String titleText = '重命名';
|
|
|
|
|
|
RenameOperationButton(
|
|
|
- BuildContext context,
|
|
|
- FileSystemEntity file,
|
|
|
- int type,
|
|
|
+ super.context,
|
|
|
+ super.file,
|
|
|
+ super.type,
|
|
|
List<FileSystemEntity> leftFiles,
|
|
|
List<FileSystemEntity> rightFiles,
|
|
|
ValueNotifier<bool> uiShouldChange,
|
|
|
- Mode mode)
|
|
|
- : super(context, file, type) {
|
|
|
+ Mode mode) {
|
|
|
this.uiShouldChange = uiShouldChange;
|
|
|
this.mode = mode;
|
|
|
}
|
|
@@ -30,7 +27,7 @@ class RenameOperationButton extends IOptButton {
|
|
|
|
|
|
@override
|
|
|
void fun(FileSystemEntity file, int type) {
|
|
|
- new Operation(leftFiles, rightFiles, context,
|
|
|
+ Operation(leftFiles, rightFiles, context,
|
|
|
uiShouldChange: uiShouldChange, mode: mode)
|
|
|
.renameFile(file, type);
|
|
|
}
|