-
Notifications
You must be signed in to change notification settings - Fork 505
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
fix: BrnProgressChart 设置颜色,背景色,以及动画无效 #326
Conversation
� Conflicts: � example/lib/sample/components/charts/progress_chart_entry_page.dart � lib/src/components/charts/brn_progress_chart/brn_progress_chart.dart � lib/src/components/charts/brn_progress_chart/brn_progress_chart_painter.dart
final BrnProgressIndicatorBuilder? builder = | ||
widget.brnProgressIndicatorBuilder; | ||
return builder?.call(context, _value) ?? | ||
Text('文本:$_value', style: widget.textStyle); |
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.
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.
是的,我处理下
@@ -59,59 +68,125 @@ class BrnProgressChart extends StatefulWidget { | |||
class BrnProgressChartState extends State<BrnProgressChart> | |||
with SingleTickerProviderStateMixin { | |||
late Animation<double> _animation; | |||
AnimationController? _animationController; | |||
double _value = 0; | |||
late AnimationController _animationController = |
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.
这个是不是在init里面初始化好些
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.
我是觉得用late 会更好点
* 3.x: (21 commits) Update build_test.yml (#348) fix: BrnIconButton 传入字体无效问题 (#346) add attribute emptyImage (#344) 增加textInputAction (#337) fix BrnToast defaultoffset error (#343) fix docs (#342) feature: Add BrnSafeDialog (dismiss) instead of Navigator.pop to close the Dialog. (#321) BrnBrokenLine: xDial support selected style (#319) fix: BrnProgressChart 设置颜色,背景色,以及动画无效 (#326) feat: 增加focusNode prop,实现焦点可控 (#328) fix: BrnTextSelectFormItem 布局字偏上问题 (#331) [perf]: 优化代码:1、将 Container(),Container(width:0, height:0) 替换为 SizedBox.shrink(),2、将 InkWell 替换为 GestureDetector (#325) fix #333; (#335) Update brn_middle_input_diaolg.dart (#327) fix global style BrnCardTitleConfig don't work (#310) (#313) fix BrnMultiSelectTagsPicker style error (#316) (#320) Update build_test.yml (#323) optimize BrnPageLoading fix #295 (#298) Create i10n.md #fixbug: 修复issues275 (#301) ...
修复 BrnProgressChart 设置颜色,背景色,以及动画无效 。issue地址:#280