Text is not shown when sharing image on facebook or instagram. But it's shown on messengers. How can I show text as text on facebook feed etc? this is my method sample: Future<void> _shareImage(RenderRepaintBoundary imageObj) async { try { final image = await imageObj.toImage(pixelRatio: 5.0); final ByteData byteData = await image.toByteData(format: ImageByteFormat.png); final pngBytes = byteData.buffer.asUint8List(); await Share.file('REBUSTA', 'esys.png', pngBytes, 'image/png', text: 'www.rebusta.com'); } catch (e) { print('error: $e'); } }
Text is not shown when sharing image on facebook or instagram. But it's shown on messengers. How can I show text as text on facebook feed etc?
this is my method sample:
Future _shareImage(RenderRepaintBoundary imageObj) async {
try {
final image = await imageObj.toImage(pixelRatio: 5.0);
final ByteData byteData =
await image.toByteData(format: ImageByteFormat.png);
final pngBytes = byteData.buffer.asUint8List();
await Share.file('REBUSTA', 'esys.png', pngBytes, 'image/png',
text: 'www.rebusta.com');
} catch (e) {
print('error: $e');
}
}