Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jigarfumakiya committed Aug 9, 2021
1 parent 3505d51 commit 9da75d6
Showing 1 changed file with 27 additions and 55 deletions.
82 changes: 27 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,61 +148,33 @@ These methods will return "success" if they successfully jump to the correspondi
## Example
```
Container(
width: double.infinity,
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Image.memory(
base64.decode(base64Image.split(',')[1]),
height: 312,
width: 175.3,
fit: BoxFit.fill,
gaplessPlayback: true,
),
SizedBox(height: 30),
RaisedButton(
child: Text('share to twitter'),
onPressed: () async {
var response = await FlutterShareMe().shareToTwitter(
url: 'https://github.com/lizhuoyuan', msg: msg);
if (response == 'success') {
print('navigate success');
}
},
),
RaisedButton(
child: Text('share to WhatsApp'),
onPressed: () {
FlutterShareMe()
.shareToWhatsApp(base64Image: base64Image, msg: msg);
},
),
RaisedButton(
child: Text('share to WhatsApp Business'),
onPressed: () {
FlutterShareMe()
.shareToWhatsApp4Biz(base64Image: base64Image, msg: msg);
},
),
RaisedButton(
child: Text('share to shareFacebook'),
onPressed: () {
FlutterShareMe().shareToFacebook(
url: 'https://github.com/lizhuoyuan', msg: msg);
},
),
RaisedButton(
child: Text('share to System'),
onPressed: () async {
var response = await FlutterShareMe().shareToSystem(msg: msg);
if (response == 'success') {
print('navigate success');
}
},
),
],
),
)
width: double.infinity,
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
SizedBox(height: 30),
ElevatedButton(
onPressed: () => onButtonTap(Share.twitter),
child: Text('share to twitter')),
ElevatedButton(
onPressed: () => onButtonTap(Share.whatsapp),
child: Text('share to WhatsApp'),
),
ElevatedButton(
onPressed: () => onButtonTap(Share.whatsapp_business),
child: Text('share to WhatsApp Business'),
),
ElevatedButton(
onPressed: () => onButtonTap(Share.facebook),
child: Text('share to FaceBook'),
),
ElevatedButton(
onPressed: () => onButtonTap(Share.share_system),
child: Text('share to System'),
),
],
),
)
```


0 comments on commit 9da75d6

Please sign in to comment.