flutter_custom_calendar
flutter_custom_calendar copied to clipboard
显示周模式和月模式时,如何默认收起的时候那一周是当前周
showMode: CalendarConstants.MODE_SHOW_WEEK_AND_MONTH,
默认收起的周试图是从第一周开始的, 怎么默认到当前周?
同问, 现在有个 bug 比如当前周是 8月3日 至 8月9日,结果缺显示成了 8月 10日 至 8月16日了。
这样通过 传递的参数 来进行跳转无效
// 跳转到指定日期
controller.moveToCalendar(widget.currentDate.year, widget.currentDate.month, widget.currentDate.day);
其实最大的问题是 折起显示的那一周不是当前周,而是上一周, 可能的得修改这个代码的一个bug
我现在的处理方式为,在切换到周视图的时候自动 执行一下到下一周 controller.nextPage();//操作日历切换到下一页
@hqwlkj 看起来没问题吗?
你们可以使用这个分支 https://github.com/hqwlkj/flutter_custom_calendar.git 已经修复了这个问题 @jinfagang
@hqwlkj 发起一个pull传到pub.dev?
提了可能页没有人合并吧
你们验证没问题,我就合并一下。抱歉了,最近比较忙,没维护这个,后续找个时间优化一下
测试唠叨更新签名
------------------ 原始邮件 ------------------ 发件人: "Yanghc"<[email protected]>; 发送时间: 2020年8月24日(星期一) 中午11:58 收件人: "fluttercandies/flutter_custom_calendar"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: Re: [fluttercandies/flutter_custom_calendar] 显示周模式和月模式时,如何默认收起的时候那一周是当前周 (#66)
提了可能页没有人合并吧
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
你们验证没问题,我就合并一下。抱歉了,最近比较忙,没维护这个,后续找个时间优化一下 测试唠叨更新签名 … ------------------ 原始邮件 ------------------ 发件人: "Yanghc"<[email protected]>; 发送时间: 2020年8月24日(星期一) 中午11:58 收件人: "fluttercandies/flutter_custom_calendar"<[email protected]>; 抄送: "Subscribed"<[email protected]>; 主题: Re: [fluttercandies/flutter_custom_calendar] 显示周模式和月模式时,如何默认收起的时候那一周是当前周 (#66) 提了可能页没有人合并吧 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
好的
没问题了,可以merge
已合
仔细测了下,貌似在stateless里面有问题(我的是bloc design),以前是toggleexpand只是星期拉起展开不再当前周,现在是直接偶尔调到下一个月了。。。比较尴尬
stateless
这个问题我已经发现并处理了,我会提交新的 PR @LXD312569496 @jinfagang
@hqwlkj 牛逼
@hqwlkj 牛逼
如果急用可以使用
flutter_custom_calendar:
git:
url: https://github.com/hqwlkj/flutter_custom_calendar.git
ref: '1.0.8'
已合
后续我会找个时间优化下,最近没怎么搞
你们可以使用这个分支 https://github.com/hqwlkj/flutter_custom_calendar.git 已经修复了这个问题 @jinfagang
你这个和原来的没区别