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

Share app posts to social media sites #61

Closed
MillerAdulu opened this issue Aug 14, 2024 · 9 comments · Fixed by #93
Closed

Share app posts to social media sites #61

MillerAdulu opened this issue Aug 14, 2024 · 9 comments · Fixed by #93
Assignees
Labels
enhancement New feature or request

Comments

@MillerAdulu
Copy link
Contributor

MillerAdulu commented Aug 14, 2024

Design Ref:

A user should be allowed to share the content from the feed to social media sites.

Initial Approach

Edit
Looks like we may need appinio_social_share (https://pub.dev/packages/appinio_social_share) to really achieve the social media effect

@MillerAdulu MillerAdulu added the enhancement New feature or request label Aug 14, 2024
@MillerAdulu MillerAdulu changed the title Share feed entries to social media sites Share app posts to social media sites Aug 15, 2024
@DanroyMwangi
Copy link
Contributor

Hey, has this issue been resolved?

@MillerAdulu
Copy link
Contributor Author

@DanroyMwangi,

This is partially resolved. Currently, you can do a share using the normal interface on the screen. What's now left is to add this section of the design linked to the issue.

Screenshot 2024-08-16 at 15 46 46

As such, we need to implement this part
Screenshot 2024-08-16 at 15 47 28

If you would like to take this up, I can assign it to you.

@DanroyMwangi
Copy link
Contributor

Could you please provide more details on the social media effect mentioned in the thread? Additionally, is the decision to use appinio_social_share finalized? I have an alternative suggestion: the url_launcher package (https://pub.dev/packages/url_launcher).

@MillerAdulu
Copy link
Contributor Author

@DanroyMwangi,

The suggested approach one would take is:

  • We have the wolt_modal_sheet as part of the code, so in lib/features/feed/ui/feed_screen.dart, you would adjust the code to launch the modal sheet (Sample of that in lib/common/widgets/app_bar/app_bar.dart:74
  • You would then construct the UI on the modal that opens to showcase the buttons
  • Then for each social media entry, you can use appinio_social_share (We have lib/features/feed/cubit/share_feed_post_cubit.dart that shows how to go about the sharing process that involves downloading the image if a post has one.

@MillerAdulu
Copy link
Contributor Author

Could you please provide more details on the social media effect mentioned in the thread? Additionally, is the decision to use appinio_social_share finalized? I have an alternative suggestion: the url_launcher package (https://pub.dev/packages/url_launcher).

This might prove challenging because url_launcher would launch the social media platform only and there's no way to share the file to a social media platform. So the post on the feed, should be shareable as a post that a person can post as themselves on their social media profile.

@MillerAdulu
Copy link
Contributor Author

As an example of this, try and share an image from your WhatsApp DM to something like Twitter and Facebook. We should be able to achieve a similar effect.

@MillerAdulu
Copy link
Contributor Author

If you can achieve the same effect with URL Launcher, I would be open to seeing your approach then we can finalise at the PR review. After all, there should be no qualms if it works.

@DanroyMwangi
Copy link
Contributor

Thank you for the clear explanation. I’ll address the issue and submit a PR shortly. Could you please assign it to me?

@MillerAdulu
Copy link
Contributor Author

@DanroyMwangi,

Kindly note the linked issue #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants