This commit is contained in:
konrad 2019-03-17 10:59:19 +01:00
parent c038ebe521
commit 7cc767b337
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 17 additions and 17 deletions

View File

@ -26,12 +26,12 @@ class Label {
createdBy = User.fromJson(json['created_by']);
toJSON() => {
'id': id,
'title': title,
'description': description,
'hex_color': description,
'created_by': createdBy?.toJSON(),
'updated': updated?.millisecondsSinceEpoch,
'created': created?.millisecondsSinceEpoch,
};
'id': id,
'title': title,
'description': description,
'hex_color': description,
'created_by': createdBy?.toJSON(),
'updated': updated?.millisecondsSinceEpoch,
'created': created?.millisecondsSinceEpoch,
};
}

View File

@ -95,13 +95,13 @@ class _ListPageState extends State<ListPage> {
task: task,
loading: true,
onEdit: () => Navigator.push(
context,
MaterialPageRoute(
builder: (context) => TaskEditPage(
task: task,
context,
MaterialPageRoute(
builder: (context) => TaskEditPage(
task: task,
),
),
),
),
),
);
}
@ -128,8 +128,8 @@ class _ListPageState extends State<ListPage> {
_addItem(String name, BuildContext context) {
var globalState = VikunjaGlobal.of(context);
var newTask =
Task(id: null, text: name, createdBy: globalState.currentUser, done: false);
var newTask = Task(
id: null, text: name, createdBy: globalState.currentUser, done: false);
setState(() => _loadingTasks.add(newTask));
globalState.taskService.add(_list.id, newTask).then((task) {
setState(() {

View File

@ -25,4 +25,4 @@ const vStandardVerticalPadding = EdgeInsets.symmetric(vertical: 5.0);
const vStandardHorizontalPadding = EdgeInsets.symmetric(horizontal: 5.0);
const vStandardPadding = EdgeInsets.symmetric(horizontal: 5.0, vertical: 5.0);
var vDateFormatLong = DateFormat("EEEE, MMMM d, yyyy 'at' h:mma");
var vDateFormatLong = DateFormat("EEEE, MMMM d, yyyy 'at' h:mma");