-
Notifications
You must be signed in to change notification settings - Fork 504
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
无法显示月份 #547
Comments
localizationsDelegates: [ |
这个怎么加啊 |
|
这样会影响报错我本来得代码
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2024年12月31日(星期二) 上午8:11
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [LianjiaTech/bruno] 无法显示月份 (Issue #547)
这个怎么加啊
#401 看看这里面,最后有解决方案
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
localizationsDelegates: AppLocalizations.localizationsDelegates,一定要用这一行得
…------------------ 原始邮件 ------------------
发件人: "LianjiaTech/bruno" ***@***.***>;
发送时间: 2024年12月31日(星期二) 上午8:11
***@***.***>;
***@***.******@***.***>;
主题: Re: [LianjiaTech/bruno] 无法显示月份 (Issue #547)
这个怎么加啊
#401 看看这里面,最后有解决方案
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
return MaterialApp( |
我其他页面会报错 还是算了
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2025年1月3日(星期五) 下午3:50
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [LianjiaTech/bruno] 无法显示月份 (Issue #547)
localizationsDelegates: AppLocalizations.localizationsDelegates,一定要用这一行得
…
------------------ 原始邮件 ------------------ 发件人: "LianjiaTech/bruno" @.>; 发送时间: 2024年12月31日(星期二) 上午8:11 @.>; @.@.>; 主题: Re: [LianjiaTech/bruno] 无法显示月份 (Issue #547) 这个怎么加啊 #401 看看这里面,最后有解决方案 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
找到AppLocalizations.localizationsDelegates定义的地方加,或者如下加,大概意思就是这么个意思
return MaterialApp(
localizationsDelegates: [
...AppLocalizations.localizationsDelegates,
// 新增
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
BrnLocalizationDelegate.delegate,
],
// 新增
supportedLocales: const [
Locale('en', 'US'),
Locale('zh', 'CN'),
],
....
);
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
BrnDatePicker.showDatePicker(context,
maxDateTime: DateTime.parse('2028-01-01 18:26'),
minDateTime: DateTime.parse('2020-01-01 18:26'),
initialDateTime: DateTime.parse('2024-11-25 18:26'),
// 支持DateTimePickerMode.date、DateTimePickerMode.datetime、DateTimePickerMode.time
pickerMode: BrnDateTimePickerMode.datetime,
minuteDivider: 1,
//pickerTitleConfig: BrnPickerTitleConfig.Default,
dateFormat: 'yyyy-MM-dd HH:mm',
onConfirm: (dateTime, list) {
BrnToast.show("onConfirm: $dateTime $list", context);
},
onClose: () {
print("onClose");
},
onCancel: () {
print("onCancel");
},
onChange: (dateTime, list) {
print("onChange: $dateTime $list");
});
The text was updated successfully, but these errors were encountered: