feat: Enhance task creation UI with title and description sections

This commit is contained in:
Vaibhav Surve 2025-06-18 12:52:20 +05:30
parent 58a66546e4
commit 5148b41579

View File

@ -121,11 +121,25 @@ void showManageTaskBottomSheet({
),
),
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const SizedBox(width: 8),
MyText.titleMedium(
"Create Task",
fontWeight: 700,
),
],
),
const SizedBox(height: 16),
_infoRowWithIcon(
Icons.workspaces, "Selected Work Area", workArea),
_infoRowWithIcon(
Icons.list_alt, "Selected Activity", activity),
const SizedBox(height: 12),
_infoRowWithIcon(Icons.check_circle_outline,
"Completed Work", completedWork),
const SizedBox(height: 12),
Row(
children: [
Icon(Icons.edit_calendar,
@ -146,11 +160,15 @@ void showManageTaskBottomSheet({
horizontal: 12, vertical: 10),
),
),
const SizedBox(height: 12),
_infoRowWithIcon(Icons.check_circle_outline,
"Completed Work", completedWork),
const SizedBox(height: 16),
MyText.bodyMedium("Description", fontWeight: 700),
Row(
children: [
Icon(Icons.description_outlined,
color: Colors.grey[700], size: 18),
const SizedBox(width: 8),
MyText.bodyMedium("Description", fontWeight: 600),
],
),
const SizedBox(height: 6),
TextField(
controller: descriptionController,
@ -164,7 +182,14 @@ void showManageTaskBottomSheet({
),
),
const SizedBox(height: 24),
MyText.bodyMedium("Select Team Members", fontWeight: 700),
Row(
children: [
Icon(Icons.group_add_outlined,
color: Colors.grey[700], size: 18),
const SizedBox(width: 8),
MyText.bodyMedium("Select Team Members", fontWeight: 600),
],
),
const SizedBox(height: 8),
Obx(() {
if (controller.isLoading.value) {