# bookReader **Repository Path**: wyx_develop/book-reader ## Basic Information - **Project Name**: bookReader - **Description**: 使用Flutter创建的文本阅读器,支持本地阅读和爬取网络上的小说 - **Primary Language**: Dart - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2023-12-01 - **Last Updated**: 2023-12-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # bookReader #### 描述 1. 使用Flutter创建的文本阅读器,支持本地阅读和爬取网络上的小说 2. 该项目仅作为交流学习之用,本人不对该项目的使用负任何后果。 3. 该项目使用MIT进行开源 4. 如有任何侵权或其它任何问题,请通过邮箱594470882@qq.com联系我进行代码删除。 #### 运行环境 ``` [√] Flutter (Channel stable, 3.7.10, on Microsoft Windows [版本 10.0.18362.720], locale zh-CN) • Flutter version 3.7.10 on channel stable at D:\Program Files\flutter_3.7.10 • Upstream repository https://github.com/flutter/flutter.git • Framework revision 4b12645012 (5 weeks ago), 2023-04-03 17:46:48 -0700 • Engine revision ec975089ac • Dart version 2.19.6 • DevTools version 2.20.1 • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn [X] Windows Version (Unable to confirm if installed Windows version is 10 or greater) [√] Android toolchain - develop for Android devices (Android SDK version 33.0.1) • Android SDK at E:\sdk • Platform android-33, build-tools 33.0.1 • ANDROID_HOME = E:\sdk • Java binary at: E:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619) • All Android licenses accepted. [√] Chrome - develop for the web • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.3) • Visual Studio at E:\Program Files (x86)\Microsoft Visual Studio\2019\Community • Visual Studio Community 2019 version 16.11.31702.278 • Windows 10 SDK version 10.0.19041.0 [√] Android Studio (version 2022.1) • Android Studio at E:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619) [√] IntelliJ IDEA Ultimate Edition (version 2021.3) • IntelliJ at E:\Program Files (x86)\IntelliJ IDEA 2021.3.2 • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart [√] Connected device (2 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [版本 10.0.18362.720] • Chrome (web) • chrome • web-javascript • Google Chrome 111.0.5563.148 [√] HTTP Host Availability • All required HTTP hosts are available ! Doctor found issues in 1 category. Process finished with exit code 0 ``` #### 真机测试环境通过 - 安卓,小米Mi10 #### 安装方法 1. pub get 2. flutter run #### 真机安装方法 1. 安装jks的key 2. flutter build apk #### 使用到的技术 序号 |技术 | 备注| 了解程度 ---|----|--|--- 1 |dart | 编程语言| 了解 2 |flutter | 框架| 了解 3 |[flutter_app](https://github.com/shichunlei/flutter_app) |追书神器| 参考 4 |get | 插件| 了解 5 |html | html格式化| 了解 6 |shared_preferences | nosql| 了解 7 |file_picker | 本地文件读取| 了解 8 |text_to_speech | 文字转语音| 太过简单 9 |permission_handler | 权限获取| 了解 10 |fast_gbk | gbk解码| 了解 9 |date_format | 时间格式化| 了解 10 |logger | 日志打印| 需了解 9 |wakelock | 强制亮屏| 了解 10 |webview_flutter | 嵌套网页| 了解 11 |flutter_vector_icons | 集成图标库| 了解 12 |scroll_to_index | list可跳转到指定位置| 废弃 13 |cached_network_image | 网络图片可提前缓存| 了解 14 |flutter_local_notifications | 本地通知| 了解 15 |dio | 网络连接| 16 |flutter_list_view | list可跳转到指定位置| 了解 - 关于第12点,希望能跳转的时候没有动画,直接跳转到指定位置,现插件已经由16点代替 #### 源码目录介绍 ``` ./lib ├── constPage // 定义静态数据 ├── dao // 本地存储DAO ├── entity // 实体类信息 ├── page │ ├── base // 自己定义的widget │ ├── book_shelf // 书架页面 │ ├── download // 下载页面 │ ├── me // 我的页面 │ ├── reading // 阅读器页面 │ ├── reptile // 爬虫相关页面 │ └── HomePage.dart // 页面入口 ├── route // 路由 ├── service // 逻辑处理 │ ├── web // 每个网站的具体爬虫逻辑 │ ├── BookShelfService.dart // 书架逻辑处理 │ ├── FileService.dart // 本地上传图书逻辑处理 │ ├── ReadingService.dart // 阅读器相关逻辑处理 │ └── ReptileService.dart // 爬虫相关逻辑处理 ├── utils // 工具类 │ └── http_urils.dart // 网络下载类 └── main.js // 入口主函数 ``` #### 问题反馈 1. 提交问题到59470882@qq.com,有任何的疑问也可以通过该邮箱联系我 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)