Skip to content

Fylan0/reading_flutter

Repository files navigation

Reading APP Flutter版


开发过程记录

1、 使用 :go_router、adaptive_navigation 搭建主页

go_router、adaptive_navigation 搭建主页

2、书店:书籍列表异步加载逻辑、GridView网格布局

书店:书籍列表异步加载逻辑、GridView网格布局

3、添加导入本地txt文件入口;点击调起文件选择页面

screen_pick_file_entrance

screen_pick_local_text_file

选择后将txt文件中文本进行解析(转成分章节的数据结构),然后分别存入到 图书、图书章节两个数据库表中

4、加载本地数据库图书信息,并展示(使用StreamController支持数据库修改后,列表View的动态刷新)

书架页面

5、阅读页面

read.gif

6、网络请求模块;书架页面使用接口数据;

  • http
  • provider
  • json_serializable、build_runner生成json代码

json数据:

screen_bookstore_net_json.png

服务端Mysql数据库内容 database_tb_book.png

APP书店页面截图: (服务端之前弄的假数据)

screen_bookstore_net.png

其他资源:

服务端项目:https://github.com/Fylan0/reading-service


reading_flutter

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published