Commit Graph

364 Commits

Author SHA1 Message Date
shilangyu fa1243f9d9 Change way of parsing urls 2021-01-30 17:41:16 +00:00
shilangyu 651e059fbd Add the long awaited article icon 2021-01-30 17:41:16 +00:00
Filip Krawczyk fa80da5c8f
Fix bugs with comments (#125)
* fix bug where write comment would respond to parent comment of a comment it should respond to

* update changelog

* fix bug that caused grey comments

* update changelog
2021-01-30 15:56:35 +01:00
krawieck 41d44537e9 fix lint error 2021-01-26 23:53:40 +01:00
krawieck 735bd52be2 fix lint errors 2021-01-26 23:51:02 +01:00
krawieck 8d0f85ceae add reusable widget BottomSafe 2021-01-26 23:16:47 +01:00
krawieck 5a449eb0be rename getter
properName -> displayName
2021-01-26 22:28:06 +01:00
krawieck 347ba7aae5 rename a widget contructor 2021-01-26 22:18:53 +01:00
krawieck dec2147b38 remove debugging debris 2021-01-26 21:55:57 +01:00
krawieck 190ae1b3ae revise api extensions
* change originInstanceHost extensions to
  extract from deeper structures
* add extension for getting proper user name
  that includes originInstanceHost if needed
2021-01-24 23:06:54 +01:00
krawieck 6c1049b5ee add safearea in useful places 2021-01-24 22:59:20 +01:00
krawieck 208a4ac1ae fix bugs with commenting 2021-01-24 21:51:07 +01:00
krawieck 6555b8c614 transition comment to v2 2021-01-24 21:50:49 +01:00
krawieck c2f528750a transition all api v1 calls to api v2 2021-01-24 20:01:55 +01:00
Filip Krawczyk 983734a506
Merge pull request #99 from krawieck/manage-account 2021-01-22 19:42:02 +01:00
shilangyu f37da51137 Make tokens in AccountsStore private 2021-01-17 16:35:47 +00:00
krawieck 4ad82c1f77 transition away from deprecated argument
child -> builder
2021-01-16 23:33:11 +01:00
krawieck 96d6c36fe9 fixes requested in code review
* "detatched" -> "detached"
* remove debug comment
2021-01-16 16:32:45 +01:00
krawieck 904e320e10 make all comments in infinitecommentlist detatched 2021-01-16 15:21:09 +01:00
krawieck ccedb35259 add button for going to post 2021-01-16 15:20:49 +01:00
krawieck 2c152aeca3 add more properties to nerd stuff 2021-01-16 15:20:30 +01:00
Marcin Wojnarowski 68b740e529
Merge pull request #101 from krawieck/refresh 2021-01-09 17:42:19 +01:00
shilangyu a994d7ca30 Document `useRefreshable` hook 2021-01-09 17:25:34 +00:00
krawieck e518092adb add hairline border around bottom modal 2021-01-09 02:49:01 +01:00
krawieck 23c6261a37 add pull to refresh to infinite scroll 2021-01-09 01:35:43 +01:00
shilangyu 95386635f3 Disable implicit casts 2021-01-03 20:25:05 +00:00
shilangyu c3837b97aa Use VoidCallback 2021-01-03 20:03:32 +00:00
shilangyu e7745e3e9b Constify the whole codebase 2021-01-03 18:43:39 +00:00
shilangyu 3de35752b2 Enable first part of const lint rules 2021-01-03 17:21:56 +00:00
shilangyu c465b09f56 Enable sort children last 2021-01-03 17:13:25 +00:00
shilangyu a803e091dc Add new easy-to-fix lint rules 2021-01-03 17:03:59 +00:00
shilangyu e82c1fa576 Add trailing @originInstanceHost to comments/community list 2021-01-02 16:26:29 +00:00
shilangyu 86ad944bbd fix visual federation bugs 2021-01-02 00:13:13 +00:00
shilangyu 58f964ab66 Fix federation errors and rename all instanceUrl to instanceHost 2020-12-31 13:58:23 +00:00
Filip Krawczyk 09ee4d4d69
Merge pull request #86 from krawieck/release-setup
Add and generate app icons
2020-12-04 19:04:31 +01:00
marcin_wojnarowski 292654081a show app icon in about and links to support 2020-12-04 15:43:39 +00:00
krawieck 6a62e47cf7 add some space to the bottom of comments so that FAB doesn't obstruct 2020-12-04 13:58:04 +01:00
krawieck 58e7219602 adapt tripple dot icon to platform
(android: vertical, iOS: horizontal)
2020-12-04 13:57:37 +01:00
krawieck 4f2f6d8e3e showInfoTablePopup usability changes
* append ":" to every key
* expect dynamic value and convert it to string in the function
2020-10-27 22:09:34 +01:00
krawieck e4055f073e implement info table popup 2020-10-26 18:47:49 +01:00
krawieck 53f19c5c57 add info table popup 2020-10-26 18:47:34 +01:00
shilangyu 9ad58e44de remove unused Expanded 2020-10-25 11:30:46 +00:00
krawieck 44863bcb04 convert write comment page to ListView 2020-10-25 01:20:31 +02:00
krawieck 0f527212c5 simplify 2020-10-06 22:28:10 +02:00
krawieck 33ab5324c4 change media view transition to fade 2020-10-06 22:24:03 +02:00
krawieck fe494a3b0b move clean up to lemmyApi extensions 2020-10-06 15:58:58 +02:00
krawieck 88d8e1bcde Merge branch 'master' into home_page 2020-10-06 12:04:31 +02:00
shilangyu 47ab40a4f6 moved delete action one higher 2020-10-05 21:38:19 +02:00
shilangyu 5c8ec4f0e4 forbid replying to removed/deleted comments 2020-10-05 14:38:38 +02:00
shilangyu 0877858380 added comments deletion, closes #16 2020-10-05 14:37:43 +02:00
krawieck 435fbc11c7 Revert "fix infinite scroll bug where it would not load when resetting"
This reverts commit 6d8660c826.
2020-10-05 13:45:20 +02:00
krawieck 5697405e32 Revert "add cleanup url util for removing stuff like `www.` from urls"
This reverts commit a8ac98284a.
2020-10-05 13:44:41 +02:00
krawieck a8ac98284a add cleanup url util for removing stuff like `www.` from urls 2020-10-04 21:52:19 +02:00
krawieck 6d8660c826 fix infinite scroll bug where it would not load when resetting 2020-10-04 21:51:26 +02:00
Filip Krawczyk c6a1eff7ed
Merge pull request #63 from krawieck/profile-tab-revamp 2020-10-02 23:39:19 +02:00
shilangyu 6604dcb9af apply changes requested from CR 2020-10-02 20:07:13 +02:00
shilangyu cc3a2c2e4f added dartdoc comment 2020-10-01 18:15:08 +02:00
shilangyu c0dd6c1c1f add about tile, closes 38 2020-10-01 17:57:04 +02:00
shilangyu f123d8edd5 fix placeholder banner 2020-10-01 15:55:22 +02:00
shilangyu ba3c1d59e1 add edit button on owned accounts 2020-09-30 23:53:20 +02:00
shilangyu 701b6f8de3 render contents of the tabs 2020-09-30 23:43:21 +02:00
shilangyu 4db7ec3fee remove loading checks and add slivers 2020-09-30 21:47:14 +02:00
shilangyu aa5d9832d6 run dartfmt 2020-09-30 19:37:56 +02:00
shilangyu 94d12fccff added lots of dartdoc/comments 2020-09-30 17:05:00 +00:00
Marcin Wojnarowski f37f01951f
Merge pull request #60 from krawieck/infinite-list-in-action 2020-09-29 21:55:04 +02:00
krawieck e1ba4e4dd4 replace every `Container()` with `SizedBox.shrink()` 2020-09-29 21:45:18 +02:00
krawieck e234a6a527 Set default instead of null coalescing 2020-09-29 21:34:05 +02:00
krawieck 487a2aab1d mark fetcher props as required 2020-09-29 21:08:02 +02:00
krawieck caed03fb68 add a todo for compact post 2020-09-29 21:05:30 +02:00
krawieck 5a858142b5 lint fixes
* convert import to relative
* convert `() {}` to `=>`
2020-09-29 12:24:52 +02:00
krawieck aefcf50fd1 add infinite comment list 2020-09-29 10:53:40 +02:00
krawieck 8f64e93705 create more universal `SortableInfiniteList` 2020-09-29 01:13:25 +02:00
krawieck a3b152706a add option to not show style button 2020-09-29 00:35:05 +02:00
krawieck ececfaf93e Replace `describeEnum` by nice lookin string 2020-09-29 00:34:35 +02:00
krawieck b9337a43ae a bunch of small fixes
* add media type: none
* change more icon size
* add support for empty post url
* add support for no embed title & description
2020-09-28 23:28:41 +02:00
krawieck 1d7a5fbf0a change default badge border radius 2020-09-28 22:35:48 +02:00
krawieck 175248e06e moved infinite post list to a separate widget 2020-09-28 22:12:40 +02:00
shilangyu 15ebfb6caa replying to comments now works, fixes #58 2020-09-28 20:24:30 +02:00
krawieck 147db8e1fe add option to include widget before the list, but that is still scrollable 2020-09-28 19:55:10 +02:00
shilangyu 377ad99fb5 limit commenting to logged in users 2020-09-21 20:19:14 +02:00
shilangyu 910e214f48 use cupertino modal popups 2020-09-21 20:18:57 +02:00
shilangyu 5409cde5d0 commenting on a post now works 2020-09-21 13:30:47 +02:00
shilangyu 222f3aedc1 replying to comments works 2020-09-21 13:20:25 +02:00
shilangyu ca749a9d40 connected replying 2020-09-21 13:20:07 +02:00
shilangyu 82d153533a fix bug where scores would show as 1 too many or 1 too few 2020-09-21 12:47:16 +02:00
shilangyu d0913ca3fa create write comment widget 2020-09-21 01:37:34 +02:00
shilangyu 6813ff47a7 better loading sizes 2020-09-19 21:51:22 +02:00
krawieck 7d8db2e83c add children count for collapsed comments 2020-09-19 15:06:50 +02:00
krawieck f091603347 Make comment less than 80 chars long 2020-09-19 14:05:58 +02:00
shilangyu c8c5b2881f ability to vote on comments 2020-09-19 12:28:46 +02:00
shilangyu 016537d8d2 ability to collapse a comment 2020-09-19 12:01:12 +02:00
shilangyu e938224df0 added comment saving 2020-09-19 02:04:00 +02:00
shilangyu e96cb9019b disallow copying when comment was removed/deleted 2020-09-19 02:03:37 +02:00
shilangyu 94ac08825e fix rebase files 2020-09-19 01:06:35 +02:00
Marcin Wojnarowski aa5b06a676
Merge branch 'master' into infinite-scroll 2020-09-19 00:42:47 +02:00
shilangyu dea66fe8bf hotfix: move api_extensions to dedicated folder 2020-09-19 00:40:47 +02:00
shilangyu 34f8f5b155 removed outdated comment 2020-09-18 23:31:54 +02:00
shilangyu ea923b032c added @required decorator 2020-09-18 23:29:38 +02:00
shilangyu 0fb53e3314 added a controller and more robust behavior 2020-09-18 23:24:58 +02:00
krawieck a50501d434 fix up of votes 2020-09-18 22:07:48 +02:00
krawieck 1e59382214 convert `Voting` to use `loggedInAction` hook 2020-09-18 21:56:42 +02:00
krawieck 620c2a6ee4 add lint ignore comment 2020-09-18 16:16:39 +02:00
krawieck baea08f857 remove unused function 2020-09-18 16:16:08 +02:00
krawieck 65fdb1932f Add lint ignore comment 2020-09-18 15:55:39 +02:00
krawieck f11999c73a import cleanup 2020-09-18 15:55:23 +02:00
krawieck f1b41217ac switch to `loggedInAction` hook 2020-09-18 15:49:36 +02:00
krawieck 3e07c963ac add tooltip 2020-09-18 12:48:32 +02:00
krawieck 7f981fe436 better loading handling 2020-09-18 01:29:17 +02:00
krawieck 700112e20b Add save post button 2020-09-17 22:50:18 +02:00
shilangyu 60dcf07001 convert hasMore into a ref + prevent double fetching 2020-09-17 19:49:42 +02:00
shilangyu 818097f962 created infinite scroll component 2020-09-17 19:43:26 +02:00
krawieck cc229f0bd3 remove useless functions 2020-09-17 18:45:00 +02:00
krawieck c9558a5945 Add voting widget for handling voting 2020-09-17 16:46:40 +02:00
krawieck c4329a163f remove obsolete todo 2020-09-17 15:25:47 +02:00
shilangyu a08a7c5b93 fix linting issues 2020-09-17 00:24:49 +02:00
shilangyu 0540be3ede activate prefer_final_locals lint rule 2020-09-16 23:22:04 +02:00
shilangyu d3eee1e837 replace route pages with cupertino ones 2020-09-16 22:53:04 +02:00
krawieck a5eaf784d5 convert pop to arrow function 2020-09-16 21:21:47 +02:00
krawieck d63c84d4bb Make comments selectable 2020-09-16 20:09:09 +02:00
krawieck 1e0fcf9c67 Fill errorWidget field on every cached network image, cuz otherwise they would break the app 2020-09-13 16:05:17 +02:00
krawieck 4bec0c533a Remove useless inkwell 2020-09-13 15:42:39 +02:00
krawieck 450f3373af remove dead code 2020-09-13 00:31:55 +02:00
Filip Krawczyk 8e9b1e17e4
Merge branch 'master' into media-view 2020-09-12 23:13:52 +02:00
krawieck f02a54a2f8 Cahnge `urlLauncher` to `linkLauncher` 2020-09-12 17:05:52 +02:00
krawieck 77d54016f3 Change `urlLanucher` signature to include `instanceUrl` 2020-09-12 09:30:22 +02:00
krawieck 83f4f61952 baseline for handling a lot of stuff 2020-09-11 23:54:28 +02:00
krawieck 676d1a4696 turn function into expression 2020-09-11 21:21:58 +02:00
krawieck ac70400c38 make import relative 2020-09-11 21:21:47 +02:00
krawieck dea677e218 remove dead code 2020-09-11 21:20:43 +02:00
krawieck 0f8a846e8a Make images in community, instance, markdown fullscreenable 2020-09-11 20:38:50 +02:00
krawieck 1746cc0db5 mark props as required and move onTap to a method 2020-09-11 20:36:19 +02:00
krawieck 6cc894be2c add widget for wrapping images that can be fullscreened 2020-09-11 20:26:06 +02:00
krawieck 4a5bb17afb Make image inside markdown fullscreenable 2020-09-11 19:29:17 +02:00
krawieck 9e27380985 use mediaviewpage in a post 2020-09-11 19:21:59 +02:00
krawieck 689b4c41cc Move media_view to pages, cuz it has a scaffold 2020-09-11 19:20:00 +02:00
krawieck e4e7f1d9a1 add dismiss handling. not perfect and prolly not final 2020-09-11 15:56:22 +02:00
krawieck c7baa125c4 add basic functionality to share button
add bottom sheet that opens when clicking
the share button. 2 options are present.
share url and share file
share url works
share file not yet
2020-09-11 11:24:06 +02:00
krawieck a8607fd661 Simplify hiding the appbar 2020-09-11 11:00:04 +02:00
krawieck 13b1a7ad8b Enter fullscreen when hiding buttons 2020-09-11 10:54:03 +02:00
krawieck 5fa9e22cd5 Add media view widget 2020-09-10 23:03:50 +02:00
krawieck 1e43d1a482 Move const structures to their own object to prevent spillage 2020-09-10 15:24:45 +02:00
krawieck 3ae7812ed7 Remove debug print 2020-09-10 15:19:02 +02:00
krawieck 704c7de2e6 fix comment section 2020-09-10 14:00:57 +02:00
krawieck cec2c7eeb4 Bring back the navigator cuz it needs to be `.fromPostView`
goToPost made it so that the post would get downloaded again when going from pots to fullpost
2020-09-10 13:11:16 +02:00
krawieck 98cc38a9d3 Make sorting popup prettier 2020-09-09 23:56:24 +02:00
krawieck 99fe7de64b Add more menu and info popup 2020-09-09 23:21:21 +02:00
krawieck 1c56ef0d63 No padding if no title 2020-09-09 21:23:58 +02:00
krawieck 0bd0efa320 Add more menu 2020-09-09 21:23:48 +02:00
krawieck ccfbc0188c Little tweaks 2020-09-09 20:52:31 +02:00
krawieck 1162fb1cd7 Create universal functions for going to common pages 2020-09-09 17:41:54 +02:00
shilangyu 90b2deb4a0 added from UserView constructor 2020-09-08 21:08:37 +02:00
krawieck 327cc8a208 Rename `SortPostsPicker` to `PostListOptions` 2020-09-07 22:49:41 +02:00
krawieck 0da1d229dc Change `enum.toString()` to `describeEnum(enum)` 2020-09-07 22:05:50 +02:00
krawieck 5509e0bc90 Update property 2020-09-07 20:22:31 +02:00
krawieck 9f1d5bc5ac Adjust import formatting 2020-09-07 16:19:28 +02:00
krawieck 3bb347fc02 Add picker for post sorting 2020-09-05 23:55:07 +02:00
krawieck 712ee3c8e2 Make it usable with very tall content
also it can now be paired with `isScrollControlled: true` passed to `showModalBottomSheet`
2020-09-05 23:48:30 +02:00
krawieck de625de379 Add option to change Badge border radius 2020-09-05 18:16:16 +02:00
krawieck 05eb748980 Add todo comment 2020-09-04 11:08:11 +02:00
krawieck 8f9bf91056 Turn bio into IIFE 2020-09-04 11:04:10 +02:00
krawieck e788ed03e5 Increase vertical padding between items 2020-09-03 23:35:13 +02:00
krawieck 36cd9c5df0 oops wrong color 2020-09-03 23:26:17 +02:00
krawieck 78208c1306 Make bottom modal usable in dark mode 2020-09-03 23:23:36 +02:00
krawieck ebee170b44 Add padding around bio 2020-09-03 23:22:11 +02:00
krawieck b2f8e88375 Increase horizontal padding 2020-09-03 22:14:07 +02:00
krawieck d8234a671a Replace icon shadow with black gradient top to bottom 2020-09-03 22:10:22 +02:00
krawieck ee0df56448 make badge color visible on different BGs 2020-09-03 16:18:42 +02:00
krawieck 2ccf2d953e Merge branch 'master' into full-post 2020-09-03 14:41:30 +02:00
krawieck 31e51c424f Move burden of fetching to full_post 2020-09-03 13:02:38 +02:00
krawieck 54a4716feb Add ways to mark post
Now post can be marked as:
* stickied
* nsfw
* removed
* deleted
2020-09-03 00:35:08 +02:00
krawieck 7f0f0c11f1 Move InkWell one widget down 2020-09-03 00:18:29 +02:00
krawieck 8e23e418ba Fix bug with not updating 2020-09-03 00:17:42 +02:00
krawieck dec88a1d88 make `CommentTag` private 2020-09-03 00:10:36 +02:00
krawieck 3381e0c375 Adjust color of link preview border to be more universal 2020-09-03 00:07:07 +02:00
krawieck e44b6cf10f Add comment actions 2020-09-03 00:01:04 +02:00
krawieck 4bc6164b64 Restructure logic, comments are now sorted upon opening 2020-09-02 23:09:00 +02:00
krawieck 47116b1cb1 Add link opening to post 2020-09-02 23:05:34 +02:00
shilangyu c16f0f412c wrap modal in safearea 2020-09-02 16:54:29 +02:00
krawieck fcf622dcfe Add comment sorting with temporary dropdown 2020-09-02 13:49:07 +02:00
krawieck 82f2084b60 Add FullPost and implement a fair bit of it 2020-09-02 00:05:42 +02:00
shilangyu 596e8f4e53 moved badge to seperate widget 2020-09-01 21:59:00 +02:00
shilangyu 708a680ddc showing modal for choosing default account 2020-09-01 21:36:58 +02:00
krawieck f44c0f60a5 change some expressions to IIFEs 2020-09-01 14:17:56 +02:00
shilangyu 5808ab17a3 restructure user profile to work in both contexts:
- profile tab
- some user profile
2020-09-01 11:55:22 +02:00
shilangyu 0824e67b3f better 'no bio' text 2020-08-31 23:05:04 +02:00
shilangyu 4539a5c4ca extracting instance url 2020-08-31 22:49:23 +02:00
Marcin Wojnarowski 1c9a0e5fa8
Merge branch 'master' into user-profile-tab 2020-08-31 21:52:52 +02:00
krawieck d902c3d2aa Rename `Comments` to `CommentSection` 2020-08-31 21:37:24 +02:00
krawieck a6486f6e51 Convert functions with single return statements to `=>` 2020-08-31 21:35:54 +02:00
krawieck 19047de57d Remove useless code 2020-08-31 21:32:34 +02:00
shilangyu 3be7d518ea clean up some TODOs 2020-08-31 21:04:17 +02:00
krawieck 3c47eb0886 move ui building functions into the build method 2020-08-31 21:03:50 +02:00
krawieck fdcb29fb1c oops, moved the wrong thing 2020-08-31 20:10:05 +02:00
krawieck 8c7e7c283b reformat expression to be more sane 2020-08-31 20:02:51 +02:00
krawieck e22a3094e4 Convert string that include `'` in them to double quouted strings 2020-08-31 19:58:09 +02:00
krawieck eee965fba1 * move comment out of `widgets/`
* remove `Widget` suffix from widgets
* change `list.length != 0` to `list.isEmpty`
* convert MarkdownText into stateless widget
2020-08-31 19:56:48 +02:00
krawieck 16d490c0ad Add missing import 2020-08-31 18:26:57 +02:00
shilangyu 9133ef94cd fix lint errors 2020-08-31 16:19:44 +02:00
shilangyu a0850836dd added utility functions 2020-08-31 15:43:09 +02:00
krawieck 6704fed4e5 Add comment pfp, op, banned 2020-08-31 15:29:02 +02:00