For Windows 10,
you can open Excel or Lotus Notes document with the following code snippet
...
RaisedButton(
onPressed: () => setState(() {
_launched = _makeCall('tel:$_urlStr');
}),
child: const Text('Make phone call'),
),
RaisedButton(
onPressed: () => setState(() {
_launched = _makeCall('sms:$_urlStr');
}),
child: const Text('Make sms call'),
),
RaisedButton(
onPressed: () => setState(() {
_launched = _makeCall('notes://$_urlStr');
}),
child: const Text('Make notes call'),
),
RaisedButton(
onPressed: () => setState(() {
_launched = _makeCall('file:$_urlStr');
}),
child: const Text('Make excel call'),
),
...
Future<void> _makeCall(String url) async {
if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch $url';
}
}
demo on Windows 10
