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