-
Notifications
You must be signed in to change notification settings - Fork 173
feat: Add native App Shortcuts #620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
5b8d2c9
76d98de
8b81c0c
08cbad6
6c305e2
49d5853
ad3001c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "images": [ | ||
| { | ||
| "idiom": "universal", | ||
| "filename": "add_1x.png", | ||
| "scale": "1x" | ||
| }, | ||
| { | ||
| "idiom": "universal", | ||
| "filename": "add_2x.png", | ||
| "scale": "2x" | ||
| }, | ||
| { | ||
| "idiom": "universal", | ||
| "filename": "add_3x.png", | ||
| "scale": "3x" | ||
| } | ||
| ], | ||
| "info": { | ||
| "version": 1, | ||
| "author": "xcode" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "images": [ | ||
| { | ||
| "idiom": "universal", | ||
| "filename": "reports_1x.png", | ||
| "scale": "1x" | ||
| }, | ||
| { | ||
| "idiom": "universal", | ||
| "filename": "reports_2x.png", | ||
| "scale": "2x" | ||
| }, | ||
| { | ||
| "idiom": "universal", | ||
| "filename": "reports_3x.png", | ||
| "scale": "3x" | ||
| } | ||
| ], | ||
| "info": { | ||
| "version": 1, | ||
| "author": "xcode" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| import 'package:flutter/material.dart'; | ||
| import 'package:get/get.dart'; | ||
|
|
||
| import 'package:taskwarrior/app/modules/home/views/add_task_bottom_sheet_new.dart'; | ||
| import 'package:taskwarrior/app/utils/themes/theme_extension.dart'; | ||
|
|
@@ -27,28 +28,28 @@ class HomePageFloatingActionButton extends StatelessWidget { | |
| color: tColors.secondaryBackgroundColor, | ||
| ), | ||
| ), | ||
| onPressed: () => (showModalBottomSheet( | ||
| backgroundColor: tColors.dialogBackgroundColor, | ||
| context: context, | ||
| isScrollControlled: true, | ||
| shape: const RoundedRectangleBorder( | ||
| borderRadius: BorderRadius.only( | ||
| topLeft: Radius.circular(0), | ||
| topRight: Radius.circular(0), | ||
| ), | ||
| onPressed: () { | ||
| Get.bottomSheet( | ||
| AddTaskBottomSheet( | ||
| homeController: controller, | ||
| forTaskC: controller.taskchampion.value, | ||
| forReplica: controller.taskReplica.value, | ||
| ), | ||
| backgroundColor: tColors.dialogBackgroundColor, | ||
| isScrollControlled: true, | ||
| ignoreSafeArea: true, | ||
| shape: const RoundedRectangleBorder( | ||
| borderRadius: BorderRadius.only( | ||
| topLeft: Radius.circular(0), | ||
| topRight: Radius.circular(0), | ||
| ), | ||
| builder: (context) => AddTaskBottomSheet( | ||
| homeController: controller, | ||
| forTaskC: controller.taskchampion.value, | ||
| forReplica: controller.taskReplica.value, | ||
| ), | ||
| ).then((value) { | ||
| if (controller.isSyncNeeded.value && value != "cancel") { | ||
| controller.isNeededtoSyncOnStart(context); | ||
| } | ||
| })) | ||
|
|
||
| // .then((value) { | ||
| ), | ||
| ).then((value) { | ||
| if (controller.isSyncNeeded.value && value != "cancel") { | ||
| controller.isNeededtoSyncOnStart(context); | ||
| } | ||
| }); | ||
|
Comment on lines
+31
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Get.bottomSheet implementation looks good, but sync trigger on dismissal may cause unexpected UX. The migration to Per the context snippet, This is the same pattern used in
🤖 Prompt for AI Agents |
||
| }, // .then((value) { | ||
| // // print(value); | ||
|
|
||
| // //if auto sync is turned on | ||
|
|
@@ -65,3 +66,4 @@ class HomePageFloatingActionButton extends StatelessWidget { | |
| ); | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: CCExtractor/taskwarrior-flutter
Length of output: 347
Add missing high-resolution image variants.
The imageset directory contains only
report.png(1x scale), but the Contents.json declares support for 2x and 3x scales without providing filenames. iOS will upscale the 1x image on retina displays, resulting in blurry or pixelated rendering. Addreport@2x.pngandreport@3x.pngto theios/Runner/Assets.xcassets/report.imageset/directory, then update the Contents.json with the corresponding filenames.🤖 Prompt for AI Agents