Anil Shrivastav
Anil Shrivastav

Reputation: 165

Using share 2.0.0 package i want to share my app's link but i have not published my app to play store yet

so how can i do that so that later on i can built and publish my app to playstore currently i have implemented to share only a demo link as simple text "Link to my app"

Share.share('Link to my app');

but i want to change it something like

Share.share('https://play.google.com/store/apps/details?id=com.whatsapp');

Upvotes: 1

Views: 309

Answers (1)

SinaMN75
SinaMN75

Reputation: 7659

The best approach is to make a http request to get link from a remote server. This way you can change it whenever you want it. Also. Because your using flutter. You can change the link based on platform. So if its on android put playstore link and if its on iOS put the appstore link.

Upvotes: 1

Related Questions