Fixed a bug where the [hideEvent] property of the [TaskListTile] was hiding the edit button and not the event one
This commit is contained in:
parent
0946705032
commit
094f1d5df0
1 changed files with 14 additions and 12 deletions
|
|
@ -101,25 +101,27 @@ class TaskListTile extends StatelessWidget {
|
|||
/// Builds the section that contains the 3 buttons for the tile.
|
||||
Widget buildButtonSection() {
|
||||
final bottomRowChildren = <Widget>[];
|
||||
if (!hideEventButton) {
|
||||
bottomRowChildren.addAll([
|
||||
|
||||
bottomRowChildren.add(
|
||||
ActionButton(
|
||||
onPressed: onEditPressed,
|
||||
text: 'Edit',
|
||||
leadingIconData: Icons.edit,
|
||||
),
|
||||
);
|
||||
|
||||
if (!hideEventButton) {
|
||||
bottomRowChildren.addAll([
|
||||
SizedBox(
|
||||
width: 4,
|
||||
),
|
||||
]);
|
||||
}
|
||||
bottomRowChildren.add(
|
||||
ActionButton(
|
||||
onPressed: onEventPressed,
|
||||
text: 'Event',
|
||||
leadingIconData: FontAwesomeIcons.calendar,
|
||||
),
|
||||
);
|
||||
]);
|
||||
}
|
||||
return Expanded(
|
||||
flex: 5,
|
||||
child: Column(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue