Skip to content

Commit 75231e6

Browse files
committed
fix: flutter analyze
1 parent dd9c3dd commit 75231e6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/cover/change_cover_popover.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import 'package:flowy_infra_ui/style_widget/icon_button.dart';
1616
import 'package:flowy_infra_ui/style_widget/text.dart';
1717
import 'package:flutter/material.dart';
1818
import 'package:shared_preferences/shared_preferences.dart';
19-
import 'package:path/path.dart' as Path;
19+
import 'package:path/path.dart' as path;
2020

2121
const String kLocalImagesKey = 'local_images';
2222

@@ -264,7 +264,7 @@ class _ChangeCoverPopoverState extends State<ChangeCoverPopover> {
264264
if (path != null) {
265265
final directory = await _coverPath();
266266
final newPath = await File(path).copy(
267-
'$directory/${Path.split(path).last}}',
267+
'$directory/${path.split(path).last}}',
268268
);
269269
imageNames.add(newPath.path);
270270
}
@@ -275,7 +275,7 @@ class _ChangeCoverPopoverState extends State<ChangeCoverPopover> {
275275

276276
Future<String> _coverPath() async {
277277
final directory = await getIt<SettingsLocationCubit>().fetchLocation();
278-
return Directory(Path.join(directory, 'covers'))
278+
return Directory(path.join(directory, 'covers'))
279279
.create(recursive: true)
280280
.then((value) => value.path);
281281
}

frontend/appflowy_flutter/lib/startup/tasks/rust_sdk.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'dart:io';
22

33
import 'package:appflowy_backend/appflowy_backend.dart';
44
import 'package:path_provider/path_provider.dart';
5-
import 'package:path/path.dart' as Path;
5+
import 'package:path/path.dart' as path;
66

77
import '../startup.dart';
88

@@ -36,11 +36,11 @@ Future<Directory> appFlowyDocumentDirectory() async {
3636
switch (integrationEnv()) {
3737
case IntegrationMode.develop:
3838
Directory documentsDir = await getApplicationDocumentsDirectory();
39-
return Directory(Path.join(documentsDir.path, 'flowy_dev')).create();
39+
return Directory(path.join(documentsDir.path, 'flowy_dev')).create();
4040
case IntegrationMode.release:
4141
Directory documentsDir = await getApplicationDocumentsDirectory();
42-
return Directory(Path.join(documentsDir.path, 'flowy')).create();
42+
return Directory(path.join(documentsDir.path, 'flowy')).create();
4343
case IntegrationMode.test:
44-
return Directory(Path.join(Directory.current.path, '.sandbox'));
44+
return Directory(path.join(Directory.current.path, '.sandbox'));
4545
}
4646
}

0 commit comments

Comments
 (0)