根据dart intl包的文档,DateFormat.jm()用于格式化时间为AM和PM,DateFormat.Hm()用于使用24小时格式:DateFormat.Hm// <-- running this causes the problemprint("${Intl.defaultLocale} ${DateFormat.jm().format(no
, state:I/flutter (30528): setState() or markNeedsBuildalready in the
I/flutter (30528): process of building widgets.I/flutter (30528): The widget on which setState() or markNeedsBuild
我想在函数或小部件中显示月数和月天数。我不想写列表,我想使用DateTime和intl,但是我不知道我能做什么,我想这样做: Widget build(Build Context context) { DateTime months = new DateTime.? //what can i use at here?