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.showDatePicker 方法的 bug #543

Open
xxxyixuan opened this issue Aug 27, 2024 · 2 comments
Open

关于 BrnDatePicker.showDatePicker 方法的 bug #543

xxxyixuan opened this issue Aug 27, 2024 · 2 comments

Comments

@xxxyixuan
Copy link

xxxyixuan commented Aug 27, 2024

问题提交

[BUG]: 关于 BrnDatePicker.showDatePicker 方法的 bug

内容需包含:

1、BUG 描述

 void _showDatePicker(BuildContext context) {
    BrnDatePicker.showDatePicker(
      context, 
      initialDateTime: DateTime.now(),
      dateFormat: dateFormat,
      pickerMode: BrnDateTimePickerMode.date,
      onConfirm: (dateTime, list) {
        setState(() {
          log("onConfirm", name: "_showDatePickers");
        });
        BrnToast.show("你选择了 ", context);
      },
      onCancel: () {
        log("取消选择");
      },
      onClose: () {
        log("关闭选择器");
      },
      onChange: (dateTime, list) {
        log("选择变更: $dateTime");
      },
    );
  }

选择器没有月份选择

2、复现步骤

3、期望行为
尽快修复
4、运行环境

  • 运行设备: oppoReno4
  • 系统: ColorOS 12.1
  • Bruno 版本 : bruno: ^3.4.2
  • Flutter Doctor 信息 : Flutter (Channel stable, 3.24.0, on Microsoft Windows [版本 10.0.22631.4037], locale zh-CN)

5、附加信息
image

@v-love-yong
Copy link

我也遇到了这个bug,有解决方案码

@v-love-yong
Copy link

可以了, localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
BrnLocalizationDelegate.delegate,
],
locale: const Locale('zh'),
supportedLocales: const [
Locale('en', 'US'),
Locale('zh', 'CN'),
],

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

2 participants