AYM1607 / do_more

A good looking glorified todo list built with flutter.
MIT License
29 stars 15 forks source link

Change the data type for priority in tasks #4

Closed AYM1607 closed 5 years ago

AYM1607 commented 5 years ago

The task model uses ints to encode the priority, this could lead to confusion and bugs. Change it to use an enum. Add the parsing capabilities needed to interact with firestore.

the enum should look something like:

enum TaskPriority {
    low,
    medium,
    high,
}
AYM1607 commented 5 years ago

https://github.com/AYM1607/do_more/commit/f38146507e9052486d0d96fe83ce2ee4b256c473 resolves this issue.