watoplan_flut icon indicating copy to clipboard operation
watoplan_flut copied to clipboard

Recurrence rule?

Open jmsandamil opened this issue 5 years ago • 1 comments

hello

can you add a recurrence rule like google calenda and other?

https://github.com/moznion/dart-grec-minimal

here you have a repository that have it.

in assessment for example, can be more ussefull to mark 1 day every 3, or 3 every 7....

thank you a lot

jmsandamil avatar Aug 20 '19 07:08 jmsandamil

here:

` 'start': ParamType<DateTime>(
    DateTime.now(),
    init: () => DateTime.now(),
    fromJson: (v) => DateTime.fromMillisecondsSinceEpoch(v is int ? v : int.parse(v)),
    toJson: (v) => v.millisecondsSinceEpoch,
    cloner: (v) => Utils.copyWith(v),
  ),
  'end': ParamType<DateTime>(
    DateTime.now(),
    init: () => DateTime.now(),
    fromJson: (v) => DateTime.fromMillisecondsSinceEpoch(v is int ? v : int.parse(v)),
    toJson: (v) => v.millisecondsSinceEpoch,
    cloner: (v) => Utils.copyWith(v),
  ),`
` 'frequency ':  number of days (if 2 = first 2 days have mark),
  ),


  'Interval': length days (if 5 = after 5 days, nex 2 get mark  ),
  ),`

i try to do some similar but i cant be abe...

jmsandamil avatar Aug 20 '19 07:08 jmsandamil