From da4a3d06e5908b6c89eaa47b6304fa1d6affcf45 Mon Sep 17 00:00:00 2001 From: Gabriel Moro Date: Sat, 4 Apr 2026 07:29:00 -0300 Subject: [PATCH] Fix tasks list rendering issue by wrapping TasksListWidget in Expanded and updating version to 1.2.2 --- .../checklist/checklist_full_widget.dart | 37 ++++++++++--------- .../task/taskslist/tasks_list_widget.dart | 5 +-- pubspec.yaml | 2 +- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/lib/ui/components/widgets/checklist/checklist_full_widget.dart b/lib/ui/components/widgets/checklist/checklist_full_widget.dart index 157dd31..4abde4e 100644 --- a/lib/ui/components/widgets/checklist/checklist_full_widget.dart +++ b/lib/ui/components/widgets/checklist/checklist_full_widget.dart @@ -99,25 +99,28 @@ class ChecklistsListFullWidgetState extends State { itemCount: widget.checklists.length, ), ), - TasksListWidget( + Expanded( flex: 6, - progress: progress, - status: status, - tasks: tasks == null ? [] : tasks!, - onCompleteTask: _tasksViewModel.onCompleteTask, - onRemoveTask: (task) => _showConfirmationDialogToRemoveTask( - context, - task, - ), - onReorder: _tasksViewModel.reorder, - onTap: (task) => _navigateToTaskScreen( - context, - checklistId: selected?.id, - task: task, + child: TasksListWidget( + flex: 6, + progress: progress, + status: status, + tasks: tasks == null ? [] : tasks!, + onCompleteTask: _tasksViewModel.onCompleteTask, + onRemoveTask: (task) => _showConfirmationDialogToRemoveTask( + context, + task, + ), + onReorder: _tasksViewModel.reorder, + onTap: (task) => _navigateToTaskScreen( + context, + checklistId: selected?.id, + task: task, + ), + onCompleteButtonAction: () { + _tasksViewModel.onCompleteButtonAction(selected?.id); + }, ), - onCompleteButtonAction: () { - _tasksViewModel.onCompleteButtonAction(selected?.id); - }, ), ], ); diff --git a/lib/ui/components/widgets/task/taskslist/tasks_list_widget.dart b/lib/ui/components/widgets/task/taskslist/tasks_list_widget.dart index 4c755cf..2ff32f9 100644 --- a/lib/ui/components/widgets/task/taskslist/tasks_list_widget.dart +++ b/lib/ui/components/widgets/task/taskslist/tasks_list_widget.dart @@ -77,10 +77,7 @@ class TasksListWidget extends StatelessWidget { ); } - return Expanded( - flex: flex ?? 1, - child: child, - ); + return child; } TaskCellWidget _buildTaskCellWidget(Task task) { diff --git a/pubspec.yaml b/pubspec.yaml index fc36ccf..96c871c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.2.1 +version: 1.2.2 environment: sdk: ^3.5.0