diff --git a/lib/app/modules/detailRoute/controllers/detail_route_controller.dart b/lib/app/modules/detailRoute/controllers/detail_route_controller.dart index e40c047d..3bc12109 100644 --- a/lib/app/modules/detailRoute/controllers/detail_route_controller.dart +++ b/lib/app/modules/detailRoute/controllers/detail_route_controller.dart @@ -34,6 +34,10 @@ class DetailRouteController extends GetxController { void setAttribute(String name, dynamic newValue) { modify.set(name, newValue); onEdit.value = true; + if(name == 'start'){ + debugPrint('Start Value Changed to $newValue'); + startValue.value = newValue; + } initValues(); } @@ -82,7 +86,7 @@ class DetailRouteController extends GetxController { statusValue.value = modify.draft.status; entryValue.value = modify.draft.entry; modifiedValue.value = modify.draft.modified; - startValue.value = modify.draft.start; + startValue.value ??= null; endValue.value = modify.draft.end; dueValue.value = modify.draft.due; waitValue.value = modify.draft.wait; diff --git a/lib/app/modules/home/controllers/home_controller.dart b/lib/app/modules/home/controllers/home_controller.dart index 1068f829..53074874 100644 --- a/lib/app/modules/home/controllers/home_controller.dart +++ b/lib/app/modules/home/controllers/home_controller.dart @@ -508,7 +508,18 @@ class HomeController extends GetxController { final projectcontroller = TextEditingController(); var due = Rxn(); RxString dueString = ''.obs; - RxString priority = 'M'.obs; + final priorityList = ['L','X','M','H']; + final priorityColors = [ + TaskWarriorColors.green, + TaskWarriorColors.grey, + TaskWarriorColors.yellow, + TaskWarriorColors.red, + + + + ]; + RxString priority = 'X'.obs; + final tagcontroller = TextEditingController(); RxList tags = [].obs; RxBool inThePast = false.obs; diff --git a/lib/app/modules/home/views/add_task_bottom_sheet.dart b/lib/app/modules/home/views/add_task_bottom_sheet.dart index a1364610..9e08077e 100644 --- a/lib/app/modules/home/views/add_task_bottom_sheet.dart +++ b/lib/app/modules/home/views/add_task_bottom_sheet.dart @@ -367,34 +367,52 @@ class AddTaskBottomSheet extends StatelessWidget { ), textAlign: TextAlign.left, ), + const SizedBox(width: 2,), Obx( - () => DropdownButton( - dropdownColor: AppSettings.isDarkMode - ? TaskWarriorColors.kdialogBackGroundColor - : TaskWarriorColors.kLightDialogBackGroundColor, - value: homeController.priority.value, - elevation: 16, - style: GoogleFonts.poppins( - color: AppSettings.isDarkMode - ? TaskWarriorColors.white - : TaskWarriorColors.black, - ), - underline: Container( - height: 1.5, - color: AppSettings.isDarkMode - ? TaskWarriorColors.kdialogBackGroundColor - : TaskWarriorColors.kLightDialogBackGroundColor, - ), - onChanged: (String? newValue) { - homeController.priority.value = newValue!; - }, - items: ['H', 'M', 'L', 'None'] - .map>((String value) { - return DropdownMenuItem( - value: value, - child: Text(' $value'), - ); - }).toList(), + () => Row( + children: [ + for(int i=0;i