Finished text section of the task list tile
This commit is contained in:
parent
7d708f328a
commit
660856317f
4 changed files with 100 additions and 28 deletions
18
lib/src/utils.dart
Normal file
18
lib/src/utils.dart
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue