我是go-flutter-desktop插件的贡献者之一
并希望分享刚刚发布的url_launcher插件
该项目“ go-flutter-desktop”与“官方” flutter桌面相比如何?请参阅https://github.com/go-flutter-desktop/go-flutter/issues/191#issuecomment-511384007
您可以使用url_launcher插件打开Web,文件,Lotus Notes文档等。
答案 0 :(得分:1)
对于Windows 10,
您可以使用以下代码段打开Excel或Lotus Notes文档
export const getLoaction = (getLocationSuccess: Function) => {
return (dispatch: Function, getState: Function) => {
const { locationState } = getState();
const { latitude, longitude } = locationState.region;
axios.get(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${latitude},${longitude}&key=<API KEY>`)
.then(json => {
const address = json.data.results[0].formatted_address;
const data = {
loading: false,
currentLocation: address
};
dispatch(getLocationSuccess(data));
})
.catch((err: any) => {
console.log('NAVIGATOR FAILED: ', err)
})
}
}
Windows 10上的演示