Skip to content

Conversation

@saurabh-m-w
Copy link
Contributor

@saurabh-m-w saurabh-m-w commented Aug 23, 2021

Fixes #260

@CLAassistant
Copy link

CLAassistant commented Aug 23, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@hpoul hpoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR 👍️
do you think you could change that to be like a context menu - for example like the group list does it:

final action = await showDialog<GroupAction>(
context: context,
builder: (context) => SimpleDialog(
title: Text(group.name(loc)),
children: <Widget>[
if (!group.isOrInRecycleBin) ...[
SimpleDialogOption(
onPressed: () =>
Navigator.of(context).pop(GroupAction.create),
child: ListTile(
leading: const Icon(Icons.create_new_folder),
title: Text(loc.createSubgroup),
),
),
],
SimpleDialogOption(
onPressed: () =>
Navigator.of(context).pop(GroupAction.edit),
child: ListTile(
leading: const Icon(FontAwesomeIcons.edit),
title: Text(loc.editAction),
),
),
if (!group.isRoot &&
!group.isRecycleBin &&
!group.inRecycleBin) ...[
SimpleDialogOption(
onPressed: () =>
Navigator.of(context).pop(GroupAction.delete),
child: ListTile(
leading: const Icon(Icons.delete),
title: Text(loc.deleteAction),
),
),
],
if (group.inRecycleBin) ...[
SimpleDialogOption(
onPressed: () => Navigator.of(context)
.pop(GroupAction.deletePermanently),
child: ListTile(
leading: const Icon(Icons.delete_forever),
title: Text(loc.deletePermanentlyAction),
))
],
],
),
);

currently it would only show one option - something like "Remove from list". (I wouldn't call it "Remove recent file" because it does not remove/delete the file. It just hides it from the list.

thanks!

@saurabh-m-w
Copy link
Contributor Author

saurabh-m-w commented Aug 23, 2021

hey @hpoul is that correct?
screenshot1 (1)
screenshot1 (2)

@hpoul
Copy link
Collaborator

hpoul commented Aug 23, 2021

Looks good! As long as it actually disappears from the list? 🤔️ Is it not refreshing?

I'm still thinking about the wording.. maybe we should call it literally "Hide from list", any thoughts?

@saurabh-m-w
Copy link
Contributor Author

Looks good! As long as it actually disappears from the list? 🤔️ Is it not refreshing?

I'm still thinking about the wording.. maybe we should call it literally "Hide from list", any thoughts?

It is refreshing perfectly.
Yeah we can have like "Hide from list" ,
but after reopening that file , it will appear on recent list.
So is that you wanted or should we have to delete it from local storage ?

@hpoul
Copy link
Collaborator

hpoul commented Aug 23, 2021

for now I would just hide it once.. and that's it.. we can in a later step show a "Delete file" menu item next to it for local files. But lets first finish the "hide"

@saurabh-m-w
Copy link
Contributor Author

for now I would just hide it once.. and that's it.. we can in a later step show a "Delete file" menu item next to it for local files. But lets first finish the "hide"

Yeah,check once updated screenshots.

hey @hpoul is that correct?
screenshot1 (1)
screenshot1 (2)

@hpoul
Copy link
Collaborator

hpoul commented Aug 24, 2021

yep, screenshots look good!

@saurabh-m-w
Copy link
Contributor Author

hey I commited the code ,but what's the issue in checks?

@hpoul
Copy link
Collaborator

hpoul commented Aug 24, 2021

It looks like ./lib/ui/screens/select_file_screen.dart is not formatted correctly. make sure to use flutter format - see also https://flutter.dev/docs/development/tools/formatting
I personally simply use the "format on save" option from intellij/android studio.

Also make sure that flutter analyze returns no warnings. (Or check the Analyzer tool in android studio)

@hpoul
Copy link
Collaborator

hpoul commented Aug 25, 2021

great thanks.. I've just added CHANGELOG and changed the GestureDetector to an IconButton - Was there a reason for not using the IconButton? 🤔️
looks good, merging.

@codecov
Copy link

codecov bot commented Aug 25, 2021

Codecov Report

Merging #260 (d48c04c) into master (e8e6b85) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #260      +/-   ##
=========================================
- Coverage    2.12%   2.12%   -0.01%     
=========================================
  Files         105     105              
  Lines        9728    9750      +22     
=========================================
  Hits          207     207              
- Misses       9521    9543      +22     
Impacted Files Coverage Δ
authpass/lib/ui/screens/select_file_screen.dart 0.17% <0.00%> (-0.01%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8e6b85...d48c04c. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants