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

BrnBrokenLine: xDial support selected style #319

Merged
merged 4 commits into from
Sep 22, 2022
Merged

BrnBrokenLine: xDial support selected style #319

merged 4 commits into from
Sep 22, 2022

Conversation

zhoujuanjuan
Copy link
Collaborator

No description provided.

@violinday violinday changed the title add new feature XRuler support selected style BrnBrokenLine: xDial support selected style Sep 6, 2022
if (isShowXDial) {
_drawXRuler(canvas, paint..color = xDialColor!);
} else {
// 此处逻辑已废弃
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个注释看着有点迷惑人,可以去掉 : )

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

那这样写?此处兼容之前 item.isShowXDial属性,建议使用全局isShowXDial

(xDialValues![i].value - xDialMin!) /
(xDialMax! - xDialMin!) *
_fixedWidth;
bool isXRulerSelected = _selectedPointX == _xPosition;
Copy link
Collaborator

Choose a reason for hiding this comment

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

两个 double 算出来的值的精度是一样的吗?用 == 会不会影响对比结果?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这个问题提的非常好,给个大拇指

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

已修改

@zhoujuanjuan zhoujuanjuan merged commit 50539bd into LianjiaTech:3.x Sep 22, 2022
@zhoujuanjuan zhoujuanjuan deleted the updatebrokenline branch September 30, 2022 06:56
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