Eternali / watoplan_flut

A simple, yet flexible time management app built with Flutter.
https://play.google.com/apps/testing/com.chipthinkstudios.watoplan.free
GNU General Public License v3.0
23 stars 4 forks source link

Recurrence rule? #12

Open jmsandamil opened 5 years ago

jmsandamil commented 5 years ago

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 commented 5 years ago

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...