Finished text section of the task list tile

This commit is contained in:
Mariano Uvalle 2019-03-12 01:19:57 -06:00
parent 7d708f328a
commit 660856317f
4 changed files with 100 additions and 28 deletions

18
lib/src/utils.dart Normal file
View file

@ -0,0 +1,18 @@
import 'package:flutter/material.dart';
// TODO: migrate to enum https://github.com/AYM1607/do_more/issues/4
Color getColorFromPriority(int priority) {
switch (priority) {
case 0:
return Color(0xFF06AD12);
break;
case 1:
return Color(0xFFF6A93B);
break;
case 2:
return Color(0xFFF42850);
break;
default:
return Colors.white;
}
}