Skip to content

Commit

Permalink
moved clickdetector so an description can be added to a task without one
Browse files Browse the repository at this point in the history
  • Loading branch information
Benimautner committed Jul 21, 2024
1 parent a047bab commit 99cb55b
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions lib/pages/project/task_edit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 99cb55b

Please sign in to comment.