在Flutter中使用flutter_filereader将中文标题更改为英语 [英] Change chinese title to english using flutter_filereader in Flutter

查看:545
本文介绍了在Flutter中使用flutter_filereader将中文标题更改为英语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望大家一切都好。我想开发一个Flutter应用程序以查看所有主要类型的文档,包括: .docx,.ppt,.pptx,.doc,.xls,.xlsx,.pdf文件,我发现了两个免费的插件,分别是file_preview( https://github.com/aliyoge/flutter_file_preview/blob/master/android/src/main/java/ zzaning / com / filepreview / LoadFileApi.java )和file_preview( https://pub.dev/packages / flutter_filereader ),但是这两个问题是,它们都在应用程序启动时或在首次启动或首次启动时都下载了一些插件。


请仅在日志中显示,而不能在加载屏幕上显示它,第二个问题是在加载文档时以中文显示,这是我无法摆脱的。


解决方案

因为中文是开发软件包的语言,所以语言大多为中文。


对于加载文档时出现的问题,它以中文显示,您无法摆脱它,我的解决方案是您仅在版本存档菜单此处


然后,打开文件并使用手动翻译每种中文Google翻译。


完成后,您可以将其手动添加到项目中。


对于另一个问题,您可以(再次) )编辑文件并显示像这样。我希望这会有所帮助。


Hope you all doing fine. I want to develop an Flutter application to view all major types of documents which include; .docx, .ppt, .pptx, .doc, .xls, .xlsx, .pdf files I found two free plugin which are file_preview (https://github.com/aliyoge/flutter_file_preview/blob/master/android/src/main/java/zzaning/com/filepreview/LoadFileApi.java) and file_preview (https://pub.dev/packages/flutter_filereader) but the issue with these two is they both download some plugin at initial or at very first time when app start's up. Which only shows in log and I am not able to show it on loading screen plus second issue is when a document is loaded it displays in Chinese language which I can not get rid of.

Please help me out guys.

解决方案

Because the Chinese develop the packages, so the language is mostly in Chinese.

For the issue when a document is loaded, it displays in the Chinese language which you can not get rid of, my solution is you just download the latest packages file inside the version archive menu here.

And then, open the file and translate each Chinese language manually using Google Translate.

After you've finished it, you can add that manually to your project.

As for another issue, you can (again) edit the file and display it like this. I hope it will help a little bit.

这篇关于在Flutter中使用flutter_filereader将中文标题更改为英语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆