Skip to content

Commit 65c43d7

Browse files
committed
fix: resolved conflicts
2 parents 10bdf67 + 7bb38b1 commit 65c43d7

21 files changed

+523
-215
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ flutter doctor
3535
flutter pub get
3636
```
3737

38-
%. Run the app:
38+
5. Run the app:
3939

4040
```bash
4141
flutter run
@@ -60,9 +60,17 @@ ___
6060
## Contributing
6161

6262
1. Fork the Project
63-
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
64-
2. Create your Fix Branch (`git checkout -b fix/BugFix`)
65-
3. Add all files(`git add .`)
66-
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
67-
4. Push to the Branch (`git push origin feature/AmazingFeature`)
68-
5. Open a Pull Request in the **develop branch**
63+
2. Clone the Forked Repo. `git clone https://github.com/[username]/taskwarrior-flutter.git`
64+
3. Create a branch
65+
- For your Feature Branch (`git checkout -b feature/AmazingFeature`)
66+
- For your Fix Branch (`git checkout -b fix/BugFix`)
67+
4. Do the changes in that branch
68+
5. Add all files (`git add .`)
69+
- Do Not add files generated by code editor of Android Studio IDE
70+
- Only add files that related to your feature
71+
6. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
72+
7. Make sure branch is synced with main branch of `CCExtractor/taskwarrior-flutter`
73+
- If not, please sync it and test again
74+
- If any conflict, resolve according to feature and test again
75+
7. Push to the Branch (`git push origin feature/AmazingFeature`)
76+
8. Open a Pull Request for the `main` branch.

lib/app/modules/home/controllers/home_controller.dart

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class HomeController extends GetxController {
5757
final RxBool showbtn = false.obs;
5858
late TaskDatabase taskdb;
5959
var tasks = <Tasks>[].obs;
60+
final RxBool isRefreshing = false.obs;
6061

6162
@override
6263
void onInit() {
@@ -79,21 +80,20 @@ class HomeController extends GetxController {
7980
handleHomeWidgetClicked();
8081
}
8182
fetchTasksFromDB();
82-
everAll([
83+
everAll([
8384
pendingFilter,
8485
waitingFilter,
8586
projectFilter,
8687
tagUnion,
8788
selectedSort,
8889
selectedTags,
8990
], (_) {
90-
if (Platform.isAndroid) {
91-
WidgetController widgetController =
92-
Get.put(WidgetController());
93-
widgetController.fetchAllData();
91+
if (Platform.isAndroid) {
92+
WidgetController widgetController = Get.put(WidgetController());
93+
widgetController.fetchAllData();
9494

95-
widgetController.update();
96-
}
95+
widgetController.update();
96+
}
9797
});
9898
}
9999

@@ -502,15 +502,12 @@ class HomeController extends GetxController {
502502
final projectcontroller = TextEditingController();
503503
var due = Rxn<DateTime>();
504504
RxString dueString = ''.obs;
505-
final priorityList = ['L','X','M','H'];
505+
final priorityList = ['L', 'X', 'M', 'H'];
506506
final priorityColors = [
507507
TaskWarriorColors.green,
508508
TaskWarriorColors.grey,
509509
TaskWarriorColors.yellow,
510510
TaskWarriorColors.red,
511-
512-
513-
514511
];
515512
RxString priority = 'X'.obs;
516513

@@ -576,10 +573,9 @@ class HomeController extends GetxController {
576573
void initLanguageAndDarkMode() {
577574
isDarkModeOn.value = AppSettings.isDarkMode;
578575
selectedLanguage.value = AppSettings.selectedLanguage;
579-
HomeWidget.saveWidgetData("themeMode", AppSettings.isDarkMode ? "dark" : "light");
580-
HomeWidget.updateWidget(
581-
androidName: "TaskWarriorWidgetProvider"
582-
);
576+
HomeWidget.saveWidgetData(
577+
"themeMode", AppSettings.isDarkMode ? "dark" : "light");
578+
HomeWidget.updateWidget(androidName: "TaskWarriorWidgetProvider");
583579
// print("called and value is${isDarkModeOn.value}");
584580
}
585581

@@ -673,6 +669,7 @@ class HomeController extends GetxController {
673669
},
674670
);
675671
}
672+
676673
late RxString uuid = "".obs;
677674
late RxBool isHomeWidgetTaskTapped = false.obs;
678675

@@ -687,7 +684,7 @@ class HomeController extends GetxController {
687684
Get.toNamed(Routes.DETAIL_ROUTE, arguments: ["uuid", uuid.value]);
688685
});
689686
}
690-
}else if(uri.host == "addclicked"){
687+
} else if (uri.host == "addclicked") {
691688
showAddDialogAfterWidgetClick();
692689
}
693690
}
@@ -700,15 +697,17 @@ class HomeController extends GetxController {
700697
}
701698
debugPrint('uuid is $uuid');
702699
Get.toNamed(Routes.DETAIL_ROUTE, arguments: ["uuid", uuid.value]);
703-
}else if(uri.host == "addclicked"){
700+
} else if (uri.host == "addclicked") {
704701
showAddDialogAfterWidgetClick();
705702
}
706703
}
707-
708704
});
709705
}
706+
710707
void showAddDialogAfterWidgetClick() {
711-
Widget showDialog = taskchampion.value ? AddTaskToTaskcBottomSheet(homeController: this) : AddTaskBottomSheet(homeController: this);
708+
Widget showDialog = taskchampion.value
709+
? AddTaskToTaskcBottomSheet(homeController: this)
710+
: AddTaskBottomSheet(homeController: this);
712711
Get.dialog(showDialog);
713712
}
714713
}

0 commit comments

Comments
 (0)