Flutter
文章平均质量分 65
Tech Ranger
这个作者很懒,什么都没留下…
展开
-
【Flutter】一文搞懂异步编程
1 事件循环机制原创 2021-11-05 00:09:53 · 1977 阅读 · 0 评论 -
【Flutter】绘制图形原理
1 Canvas画布API名称功能drawLine画线drawPoint画点drawPath画路径drawImage画图像drawRect画矩形drawCircle画圆drawOval画椭圆drawArc画圆弧1.1 drawLine使用方法及源码分析使用方法:源码: /// Draws a line between the given points using the given paint. The line原创 2021-10-23 00:58:43 · 833 阅读 · 0 评论 -
【Flutter】时间轴高度自适应最佳实践
1 使用部件画圆圈:使用 canvas.drawCircle 和属性为_paint.style = PaintingStyle.fill;画笔画两个实心圆;画竖线:使用 canvas.drawLine 和属性为_paint.style = PaintingStyle.stroke;的画笔画直线,通过 p1 和 p2 两个端点使直线为竖线在 Container 中调用 decoration 组件使用 BorderTimeLine 类。decoration: BoxDecoration(border:原创 2021-10-20 01:09:14 · 1453 阅读 · 0 评论 -
【Flutter】使用GridView实现二维网格列表
1 GridView构造函数GridView({ Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller, bool primary, ScrollPhysics physics, bool shrinkWrap = false, EdgeInsetsGeometry padding, @required SliverGridDelegate gridDe原创 2021-09-21 00:38:31 · 573 阅读 · 0 评论 -
【Flutter】详解BuildContext
framework.dart中BuildConttext源码:/// The [BuildContext] for a particular widget can change location over time as/// the widget is moved around the tree. Because of this, values returned from/// the methods on this class should not be cached beyond the exe原创 2021-09-06 02:10:57 · 986 阅读 · 0 评论