Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

title when sharing note #738

Merged
merged 2 commits into from Jul 29, 2023
Merged

title when sharing note #738

merged 2 commits into from Jul 29, 2023

Conversation

gonzalovelasco
Copy link
Collaborator

No description provided.

@gonzalovelasco gonzalovelasco linked an issue Jul 26, 2023 that may be closed by this pull request
@@ -40,9 +40,12 @@ class NoteEditorAppBar extends ConsumerWidget {
return;
}
final box = context.findRenderObject() as RenderBox?;
String? title = titleController?.text;
String concatenatedText = title != null ? "$title\n$content" : content;
Copy link
Collaborator

Choose a reason for hiding this comment

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

good work on this!

if (kIsWeb) {
await Clipboard.setData(
ClipboardData(text: contentController?.text ?? ''));
await Clipboard.setData(ClipboardData(text: content));
Copy link
Collaborator

Choose a reason for hiding this comment

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

the clipboard data should be set as concatenatedText as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed 502ad25

Copy link
Collaborator

@matthewwong525 matthewwong525 left a comment

Choose a reason for hiding this comment

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

When sharing from web, it should include the title as well!

Copy link
Collaborator

@matthewwong525 matthewwong525 left a comment

Choose a reason for hiding this comment

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

LGTM

@matthewwong525 matthewwong525 merged commit f9dbafe into main Jul 29, 2023
1 check passed
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.

add title when sharing note
2 participants