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

BrnDatePicker选择月份时,天那一栏会跳到最后 #405

Open
choykarl opened this issue Jan 27, 2023 · 2 comments
Open

BrnDatePicker选择月份时,天那一栏会跳到最后 #405

choykarl opened this issue Jan 27, 2023 · 2 comments

Comments

@choykarl
Copy link

1、BUG 描述

BrnDatePicker.showDatePicker(
            context,
            initialDateTime: DateTime.now(),
            pickerMode: BrnDateTimePickerMode.datetime,
            dateFormat: 'yyyy年-MM月-dd日 HH时:mm分',
          );

如上代码选择月份时,天会跳到最后面。

2、复现步骤
如上代码

3、期望行为
天那一栏保留在当前所选的位置

4、运行环境
DEBUG

  • 运行设备
  • 系统: OS真机和模拟器
  • Bruno: 3.3.0
  • Flutter Doctor 信息:
    [✓] Flutter (Channel stable, 3.3.2, on macOS 13.1 22C65 darwin-arm, locale
    zh-Hans-CN)
    • Flutter version 3.3.2 on channel stable at /Users/choikarl/flutter-stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e3c29ec00c (5 months ago), 2022-09-14 08:46:55 -0500
    • Engine revision a4ff2c53d8
    • Dart version 2.18.1
    • DevTools version 2.15.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

5、附加信息

2023-01-27.17.09.17.mov
@JunCaiLi
Copy link
Contributor

@zhoujuanjuan @violinday 定位了下问题在brn_datetime_widget.dart 在dayRange 改变的时候要jumpTo 到最大天数-最小天数的那天,这样设计的原因是什么
image

@violinday
Copy link
Collaborator

@JunCaiLi 这处代码是为了解决旧版本Flutter 中存在的一个问题(448行注释 flutter/flutter#22999 )。

已经看到你提交的 pr #407,后面我们测试下是否对其他逻辑有影响。

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

No branches or pull requests

3 participants