项目重构ing,在掘金不定时更新进度;
现在重构开发分支是:dev_2.0分支;
flutter版本是2.8.1
flutter_app(追书神器的接口以及介绍页来自于这个项目)
BookPage(阅读页的实现思路参考自这个项目)
本项目仅用于研究学习,请勿用于商业,否则后果与本人无关。
仿追书神器,具有仿真、滑动和滚动翻页、字体大小、行高、背景、目录等功能的Flutter 阅读APP
License: BSD 3-Clause "New" or "Revised" License
项目重构ing,在掘金不定时更新进度;
现在重构开发分支是:dev_2.0分支;
flutter版本是2.8.1
flutter_app(追书神器的接口以及介绍页来自于这个项目)
BookPage(阅读页的实现思路参考自这个项目)
本项目仅用于研究学习,请勿用于商业,否则后果与本人无关。
非常感谢大佬上次的指点,翻书的效果已经集成进去了,目前我又遇到的了一个问题看了大佬2天的源码能力有限还是不知道怎么调整控制文字显示区域增加一些控件上去,没办法了只有来打搅大佬的了,现在要求有些章节是需要付费才能看到,没有付费只展示一下段文字,文字下面是自动付费和购买的布局,后台是一次性把文章内容都返回回来,还是没想好这块怎么动才好,求大佬赐教
Hello,
The lib render text content so good, but I wonder how to able select text to copy or highlight.
Thank you.
我只想使用作者的阅读页..开始整合的挺正常 后来不知道改了哪一直报这个错误
但是好像不影响正常使用 目前只能确定是NovelReaderContentModel parseChapterContent的问题
但是具体是哪就不知道了也没有更详细的错误提示了...
E/FlutterIsolate(21936): IllegalStateException: registrar.activity() must not be null
E/FlutterIsolate(21936): It is possible the default GeneratedPluginRegistrant is attempting to register
E/FlutterIsolate(21936): a plugin that uses registrar.activity() or a similar method. Flutter Isolates have no
E/FlutterIsolate(21936): access to the activity() from the registrant. If the activity is being use to register
E/FlutterIsolate(21936): a method or event channel, have the plugin use registrar.context() instead. Alternatively
E/FlutterIsolate(21936): use a custom registrant for isolates, that only registers plugins that the isolate needs
E/FlutterIsolate(21936): to use.
您是画了多个画布 重叠在一起 还是只画两个画布重叠在一起进行操作的 我看到代码中只用到了一个CustomPaint 实在CustomPaint里面有多个画布canvas吗 我比较菜 刚入行 向您请教一下
这是后台返回阅读数据
{
"code": 10000,
"data": {
"current": { //当前阅读章节
"id": "235499",
"bid": "11631",
"coin": "0",
"num": 2,
"name": "第三章 彪悍的叶辰",
"is_buy":0 //未后买章节
"link": "https://cdn./front/chapter_info/11631_2_11bacdfc1b2ce4a14fec64c49e1bb0ea.js"
},
"book": { //书籍基本详情
"id": "11631",
"name": "武动神尊",
"status": "1",
"auto_buy": "1" //自动续费
"spic": "updata/book/201904/201904121626098346.jpeg"
},
"prev": { //前一章节
"num": 1,
"link": "https://11631_1_11bacdfc1b2ce4a14fec64c49e1bb0ea.js"
},
"next": { //后一章节
"num": 3,
"link": "https:///11631_3_11bacdfc1b2ce4a14fec64c49e1bb0ea.js"
},
"auto_buy": true, //是否自动续费
"shelf_status": fales, //是否以在书架
"ad_chapter": "", //底部广告
"recommend_info": "" //推荐书籍
"coin_currency": "9941",//当前书币
"coin_arch": "20", //当前书券
}
}
switch 的每个 case 要是 return 了的话就不用 break 了吧……反正都返回了。
代码在 lib\app\novel\view\novel_book_intro.dart
中的 81 行 itemBuilder
处,代码如下↓↓↓:
itemBuilder: (context, index) {
switch (index) {
case 0:
return NovelIntroShortCommentView(commentInfo);
break;
case 1:
return NovelIntroBookReviewView(bookReview);
break;
case 2:
return NovelIntroBookRecommendView(bookRecommend);
break;
case 3:
return Container(
color: Colors.white,
height: 50,
width: double.infinity,
alignment: Alignment.center,
child: Text('${detailInfo?.copyrightDesc}',
style: TextStyle(
fontSize: 16, color: Colors.grey)));
break;
default:
return null;
break;
}
},
每行多写一个 break 看的我好难受……
您好,我们是一家面向中东的小说阅读平台,您的代码对我们启发很大,所以想尝试过来挖一挖,业务方面处在上升期,机会还是蛮多的,不知道您有没有兴趣深入聊一下,我的微信:stone2506
大大,想请教一下,无论翻页效果是仿真、覆盖、或者上下滑动,手指快速滑动的话,页面不跟手,是源码二次修改的原因吗?
阅读页面的思路能不能出个文档 特别是仿真翻页
已star,我是做RN的,前来学习。感谢大佬!
作者大大您好,请问可以给个联系方式吗?想了解一下Provider的部分,有点没看懂
感谢大佬的库,很不错!
不过仿真翻页这块不太跟手,请问该怎么优化呢?
纵观全网,只有你这边有flutter版本的仿真翻页啦~
对于 README.md 里面第一句话 "如果你想自己编译"...
我想说,我不想自己编译,但是我没看到项目里有可以安装的软件包,
项目 releases 也是空的!
在书架部分:
NovelBookShelfViewModel buildViewModel(BuildContext context) { return NovelBookShelfViewModel( Provider.of(context), Provider.of(context), ); }
这里的两个Provider.of(context)能解释一下吗?谢谢~
点击阅读书籍后翻到第三章,再往回翻,从第二章第一页往回翻会直接回到第一章的第一页,请问这个问题怎么解决?
getPageConfig这个方法计算的内容有些页面显示不全,看了代码没看明白,大佬可以给解答下吗,用的是dev_2.0的分支
整体感觉很好,就是分页滑动速度不能太快,给有强迫症的人感觉不流畅的感觉,像一些阅读器比如头条上的,华为上的,都可以快翻页,感觉上好
似乎Custompaint会来的更加流畅一点,我已经通过修改PageScrollPhysics 来让动画更快结束。
而且在快速滑动的时候,似乎会出现一些奇怪的现象。 比如说 从第四章直接跳到第一章了
支持大佬重写,第一个版本代码看的有点痛苦😊
昨天尝鲜体验了一下,两个例子效果太棒了,性能也挺好,确实是高人,感谢作者付出。 发现了两个小问题,可能还还没写完的原因吧。问题1:旋转球:在点击不小心拖动时,球会消失。2、仿真分页:向左滑动时,滑动到最后像气泡一样消失不见,感觉不舒服,但向向滑动,感觉比较逼真。
前面的章节要如何处理。listview要双向加载了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.