File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
frontend/appflowy_flutter/lib
plugins/document/presentation/plugins/cover Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import 'package:flowy_infra_ui/style_widget/icon_button.dart';
1616import 'package:flowy_infra_ui/style_widget/text.dart' ;
1717import 'package:flutter/material.dart' ;
1818import 'package:shared_preferences/shared_preferences.dart' ;
19- import 'package:path/path.dart' as Path ;
19+ import 'package:path/path.dart' as path ;
2020
2121const 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 }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import 'dart:io';
22
33import 'package:appflowy_backend/appflowy_backend.dart' ;
44import 'package:path_provider/path_provider.dart' ;
5- import 'package:path/path.dart' as Path ;
5+ import 'package:path/path.dart' as path ;
66
77import '../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}
You can’t perform that action at this time.
0 commit comments