forked from vikunja/app
Format
This commit is contained in:
parent
c038ebe521
commit
7cc767b337
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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(() {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue