Skip to content
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

Merged
merged 7 commits into from
Sep 22, 2022

Conversation

leftcoding
Copy link
Collaborator

修复 BrnProgressChart 设置颜色,背景色,以及动画无效 。issue地址:#280

final BrnProgressIndicatorBuilder? builder =
widget.brnProgressIndicatorBuilder;
return builder?.call(context, _value) ??
Text('文本:$_value', style: widget.textStyle);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

和之前的代码对比来看,文本: 应该是不需要的。🤔
image

Copy link
Collaborator Author

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 =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是不是在init里面初始化好些

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我是觉得用late 会更好点

@zhoujuanjuan zhoujuanjuan merged commit b9a47ea into LianjiaTech:3.x Sep 22, 2022
violinday added a commit that referenced this pull request Sep 30, 2022
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants