CopyOperationButton.dart 794 B

123456789101112131415161718192021222324252627282930313233
  1. import 'dart:io';
  2. import 'dart:ui';
  3. import 'package:flutter/cupertino.dart';
  4. import 'package:flutter/material.dart';
  5. import 'package:neofilemanager/OperationButtom/IOptButton.dart';
  6. import 'package:neofilemanager/Opertaion/Operation.dart';
  7. import '../Item/Mode.dart';
  8. class CopyOperationButton extends IOptButton {
  9. @override
  10. Color color = Colors.blueAccent;
  11. @override
  12. String titleText = '复制';
  13. CopyOperationButton(
  14. BuildContext context, FileSystemEntity file, int type, Mode mode)
  15. : super(
  16. context,
  17. file,
  18. type,
  19. ) {
  20. this.mode = mode;
  21. }
  22. @override
  23. void fun(FileSystemEntity file, int type) {
  24. // TODO: implement fun
  25. new Operation(leftFiles, rightFiles, context, mode: mode)
  26. .copyToDir(file, type);
  27. }
  28. }