mirror of
https://github.com/go-vikunja/app
synced 2024-09-17 21:31:46 +00:00
moved clickdetector so an description can be added to a task without one
This commit is contained in:
parent
a047bab1db
commit
99cb55b82d
@ -150,37 +150,38 @@ class _TaskEditPageState extends State<TaskEditPage> {
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 10.0),
|
||||
child: Row(
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.only(right: 15, left: 2),
|
||||
child: Icon(
|
||||
Icons.description,
|
||||
color: Colors.grey,
|
||||
)),
|
||||
Flexible(
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
// open editdescription
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (buildContext) =>
|
||||
EditDescription(
|
||||
initialText: _description,
|
||||
)),
|
||||
).then((description) => setState(() {
|
||||
if (description != null)
|
||||
_description = description;
|
||||
_changed = true;
|
||||
}));
|
||||
},
|
||||
child: HtmlWidget(_description != null
|
||||
? _description!
|
||||
: "No description"),
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
// open editdescription
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (buildContext) =>
|
||||
EditDescription(
|
||||
initialText: _description,
|
||||
)),
|
||||
).then((description) => setState(() {
|
||||
if (description != null)
|
||||
_description = description;
|
||||
_changed = true;
|
||||
}));
|
||||
},
|
||||
child: Row(
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.only(right: 15, left: 2),
|
||||
child: Icon(
|
||||
Icons.description,
|
||||
color: Colors.grey,
|
||||
)),
|
||||
Flexible(
|
||||
child: HtmlWidget(_description != null
|
||||
? _description!
|
||||
: "No description"),
|
||||
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
)),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 10.0),
|
||||
|
Loading…
Reference in New Issue
Block a user