摘要:
https://www.jianshu.com/p/2ea01ae02ffe Flutter:教你用CustomPaint画一个自定义的CircleProgressBar paint_page.dart paint.dart 阅读全文
posted @ 2019-05-13 21:33
CrossPython
阅读(829)
评论(1)
推荐(0)
摘要:
最近在学习中需要用到裁剪图片,记录一下解决方法 思路: 使用canvas的drawImageRect()方法,对Image进行裁剪,这里的Image需要 'dart:ui' 库中的Image。 1. canvas的drawImageRect()方法 ①第一个参数是'dart:ui' 库中的Image 阅读全文
posted @ 2019-05-13 21:18
CrossPython
阅读(3576)
评论(1)
推荐(0)
摘要:
实现原理很简单 ,自己绘制一个裁剪框, 根据手势 选择到适合的位置 ,然后将选中的区域绘制到一个新的图片上,从而完成裁剪 裁剪框的绘制 这里我是根据点来连线的 因为每个点上会绘制一个拉伸的标识符 源图片的绘制 ,根据屏幕大小 把图片缩放成适合长宽比例的图片 绘制完后 就是根据手势的偏移量来计算裁剪框 阅读全文
posted @ 2019-05-13 21:14
CrossPython
阅读(3414)
评论(0)
推荐(0)
摘要:
A Flutter Sound Pool for playing short media files. Sound Pool caches audio tracks in memory. This can be useful in following scenarios: lower latency 阅读全文
posted @ 2019-05-13 20:17
CrossPython
阅读(380)
评论(0)
推荐(0)
摘要:
https://stackoverflow.com/questions/43813386/how-to-play-a-custom-sound-in-flutter Thanks for checking out Flutter! Flutter SDK today (as of May 5, 20 阅读全文
posted @ 2019-05-13 20:02
CrossPython
阅读(133)
评论(0)
推荐(0)
摘要:
Image是一个用于展示图片的组件。支持 JPEG、PNG、GIF、Animated GIF、WebP、Animated WebP、BMP 和 WBMP 等格式。 Image 有许多的静态函数: new Image.asset - 用于从资源目录的显示图片。 new Image.network - 阅读全文
posted @ 2019-05-13 19:57
CrossPython
阅读(2448)
评论(0)
推荐(0)
浙公网安备 33010602011771号