Skip to content

Commit

Permalink
Merge pull request #209 from autodo-app/198
Browse files Browse the repository at this point in the history
force "completed" preface for completed todos
  • Loading branch information
baylessj authored Jan 26, 2020
2 parents 339bebc + 6f8555e commit 3ca204d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ doc/**
.flutter-plugins**
keys.json
*.log
.vscode/
.vscode/**
1 change: 1 addition & 0 deletions lib/localization.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class AutodoLocalizations {
static String get verificationSent => "Verification Email Sent";
static String get verificationDialogContent =>
"Please check the specified email address for an email from auToDo. This email will contain a link through which you can verify your account and use the app.";
static String get completed => "Completed: ";
}

class AutodoLocalizationsDelegate
Expand Down
4 changes: 3 additions & 1 deletion lib/screens/home/widgets/todo_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ class _TodoTitle extends StatelessWidget {
_TodoTitle({Key key, @required this.todo}) : super(key: key);

preface() {
if (todo.dueState == TodoDueState.PAST_DUE) {
if (todo.completed) {
return AutodoLocalizations.completed;
} else if (todo.dueState == TodoDueState.PAST_DUE) {
return AutodoLocalizations.pastDue;
} else if (todo.dueState == TodoDueState.DUE_SOON) {
return AutodoLocalizations.dueSoon;
Expand Down

0 comments on commit 3ca204d

Please sign in to comment.