bruno icon indicating copy to clipboard operation
bruno copied to clipboard

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

Open choykarl opened this issue 2 years ago • 2 comments

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、附加信息

https://user-images.githubusercontent.com/12951859/215050435-53eaa757-ef33-4603-a743-fd86f9688138.mov

choykarl avatar Jan 27 '23 09:01 choykarl

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

JayceV552 avatar Jan 29 '23 07:01 JayceV552

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

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

violinday avatar Feb 03 '23 04:02 violinday