摘要: 今天正好需求做完了没啥事,学习了一下CustomPaint,做了一个圆圈式的进度条,代码如下: import 'dart:async'; import 'dart:math'; import 'package:flutter/material.dart'; void main() => runApp 阅读全文
posted @ 2020-10-12 18:23 NeoZy 阅读(914) 评论(0) 推荐(0) 编辑
摘要: Flutter中自绘组件是CustomPaint,它是一个widget。配合CustomPainter(画笔),可以画出任意想要的图形。 CustomPaint构造函数如下: const CustomPaint({ Key key, this.painter, ///背景画笔,会展示在child后面 阅读全文
posted @ 2020-10-12 15:59 NeoZy 阅读(817) 评论(0) 推荐(0) 编辑