西红柿大芝麻

Results 83 comments of 西红柿大芝麻

i found method `canvas.drawPicture(ui.picture)` is clear. i can get the `ui.picture` and the `ui.image` object, but how can we change drawImageRect to drawPicture

pub上有dart实现[DLNA](https://pub.dev/packages/dlna)的包了,投屏没有问题,可以自己加,下面截图是awesome_video_player默认配置加投屏按钮效果。 ![投屏](https://s1.ax1x.com/2020/07/10/UMSQzQ.jpg)

来推销我的排版效果: 分栏 分页 两端对齐 高度对齐等效果 --- ![E3Z@FG25IXJ)I 6Y1(HDD$W](https://user-images.githubusercontent.com/19526331/109742072-5b1b5580-7c09-11eb-81d1-04e692424d35.png) ![$}C 5XZ6BHL_3X}HCSXHPGV](https://user-images.githubusercontent.com/19526331/109742094-666e8100-7c09-11eb-9c97-979a70c7222a.png) --- 一个文本两端对齐和分页(可选底栏对齐)工具(处理一屏幕文字耗时约5ms) https://github.com/mabDc/text_composition

https://stackoverflow.com/questions/57802420/how-to-create-page-curl-effect @lwlizhe 这个效果也很棒,而且他写的非常简单,大佬有空可以看看。 (…其实想不通你分页为啥那么慢。我两端对齐,上下对齐,加分页,300页的一卷小说也在2s之内。

@beyondbkcy 这个文件单文件简单改成免继承或者继承`CustomPainter`的形式直接就能用 作者写的很棒 https://github.com/lwlizhe/flutter_novel/blob/master/lib/app/novel/widget/reader/content/helper/animation/animation_page_simulation_turn.dart 修改成免继承的形式 https://github.com/mabDc/text_composition/blob/main/test/lwlizhe.dart ---- @lwlizhe 实际上就是你的animation_page_simulation_turn放进一个跟随animation重绘的painter就可以了 主要实现类似 https://stackoverflow.com/questions/57802420/how-to-create-page-curl-effect

先执行`calcCornerXY(x, y, size)`表示手指按下,比如`calcCornerXY(size.width, size.height, size)`是按了右下角。 然后执行下面两行就可以了。最简单就是放进一个继承至`CustomPainter`的`class`里,然后onpaint方法重绘就完事儿。 ```dart calBezierPoint(Offset(x, size.height), size); onDraw(canvas, Offset(x, size.height), size, picture!); ``` --- 比如这样 ![H%_W M2BSFTKL$NQ7_AD($G](https://user-images.githubusercontent.com/19526331/112430649-6598bd00-8d79-11eb-95ea-95b0c0b89f9c.png)

看你要简单还是复杂 最简单就是只用从右往左的动画 那其他都不用画了 你只需要画当前页矩阵裁剪左边,下一页也用矩形裁剪右边 然后画背面和阴影 完事儿。我截图的效果就是最简单的

我自己分页几百次也不到2s 你的项目跑起来 动画不卡 但是加载条特别久

1. 这个问题待确认,我没遇到 2. win上视频播放还不能内置,需要借助网页或者其他播放器 3. 你没有给你使用的版本

唔 最新版内置播放了,github上面这两天有空就更新吧 https://user-images.githubusercontent.com/19526331/155692160-30047182-689e-445b-9aa1-3ba7d66fe697.mp4