-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
交作业 #9
交作业 #9
Conversation
} | ||
|
||
class RenderPercentBox extends RenderBox { | ||
int max; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
想法不错,但是为什么不是终值?
2 - 百格齐放 - 20201202/ray_main.dart
Outdated
topRect.center.dy - textPainter.height / 2, | ||
), | ||
); | ||
var bottomRect = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
写 var 的都是大**
2 - 百格齐放 - 20201202/ray_main.dart
Outdated
var topRect = Rect.fromLTWH(0, 0, width, topHeight); | ||
canvas.drawRect(topRect, bgPaint); | ||
textPainter.text = TextSpan(text: value.toString()); | ||
textPainter.layout(maxWidth: width); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上面晓得级联,这里怎么不用了
2 - 百格齐放 - 20201202/ray_main.dart
Outdated
|
||
class RenderStackBox extends RenderBox { | ||
int boxCount; | ||
Paint boxPaint = Paint()..isAntiAlias = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
能是 final 的就写 final
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
自己绘制实现格子效果