Commit Graph

340 Commits

Author SHA1 Message Date
krawieck 4ca8e96e97 use `useEffect` instead of just plainly changing systemChrome 2020-09-10 15:16:45 +02:00
krawieck 704c7de2e6 fix comment section 2020-09-10 14:00:57 +02:00
krawieck 8713cbe0e1 Convert import to a relative one 2020-09-10 14:00:39 +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 b5f581f773 Make amoled dark theme even darker 2020-09-10 01:30:02 +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 71272af69c Adjust brightness so that status bar sets itself to the right color 2020-09-09 22:15:39 +02:00
krawieck 11e6c4881b add more menu 2020-09-09 22:04:50 +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
shilangyu 0b9c478e34 added vertical trail 2020-09-09 20:47:34 +02:00
shilangyu 09270c43f4 correctly handling missing icons 2020-09-09 19:25:12 +02:00
krawieck bb789b3ac9 Cleanup and a addition of couple comments 2020-09-09 19:23:41 +02:00
shilangyu ac1d22a611 connected following/unfollowing 2020-09-09 19:22:20 +02:00
shilangyu dbce173239 changed name of the subscribe toggle 2020-09-09 18:53:24 +02:00
shilangyu 260854386d added basic render of communities tab 2020-09-09 18:51:48 +02:00
krawieck ebc0854a49 fix an oopsie 2020-09-09 18:35:18 +02:00
krawieck 42ebde872e too much copy-pasting 👀 2020-09-09 17:49:01 +02:00
krawieck 1162fb1cd7 Create universal functions for going to common pages 2020-09-09 17:41:54 +02:00
krawieck c302d7dd5d Add set of extensions for getting instanceUrl 2020-09-09 17:26:17 +02:00
Marcin Wojnarowski 0fa880fdbc
Merge pull request #33 from krawieck/instance-page 2020-09-09 11:38:13 +02:00
krawieck 232cd32cf0 Add image error handling 2020-09-09 11:32:34 +02:00
krawieck d1cb84ba29 Properly handle empty usernames 2020-09-09 11:19:12 +02:00
krawieck 1fe1562ef2 Remove useless comment 2020-09-09 11:18:01 +02:00
krawieck d9d726b350 Remove unnecessary string interpolation 2020-09-09 11:12:43 +02:00
krawieck 3abd5875ee Remove "rencently banned" list. leave a button to it instead 2020-09-09 11:09:38 +02:00
krawieck b59022b001 Fix copy-paste artifacts 2020-09-09 11:05:39 +02:00
krawieck 77d010d15c Add "nerd stuff" section to `...` menu that just spits out random info about this instance 2020-09-09 01:22:07 +02:00
Filip Krawczyk 8bd4218dd3
Merge pull request #31 from krawieck/user-profile-page 2020-09-08 23:23:28 +02:00
krawieck 2e6c1dba4d Last minute tweaks 2020-09-08 23:16:30 +02:00
krawieck 865ec24db6 All hail the linter 2020-09-08 23:10:40 +02:00
krawieck 34cd4ff1c1 Add communities list page 2020-09-08 23:01:40 +02:00
shilangyu 50870ccd08 handling non-existant users 2020-09-08 22:56:45 +02:00
krawieck e3ef1fab2d Add share functionality, triple dot menu with 1 item
the 1 item is "open in browser"
2020-09-08 22:33:11 +02:00
shilangyu 6449929030 handling anonymous users in profile tab 2020-09-08 21:45:17 +02:00
shilangyu 9b3caf4927 added computed member for knowing if there are accounts 2020-09-08 21:44:52 +02:00
shilangyu 62beee4d5c exporting Accounts and Appearance pages 2020-09-08 21:44:27 +02:00
krawieck 9e0011f528 Make one title match all others 2020-09-08 21:20:29 +02:00
krawieck 2c20779387 Make share button actualy do something 2020-09-08 21:18:17 +02:00
shilangyu bd20931235 changed icon to email 2020-09-08 21:17:17 +02:00
shilangyu d9a7ce9773 created user page 2020-09-08 21:08:50 +02:00
shilangyu 90b2deb4a0 added from UserView constructor 2020-09-08 21:08:37 +02:00
krawieck ef1ae9cdd9 Add UsersListPage and button for going to page with all banned users 2020-09-08 20:24:36 +02:00
krawieck d333f15fad Convert all inline function to methods 2020-09-08 19:52:09 +02:00
krawieck 7a140fca6f Add recently banned section and modlog tile 2020-09-08 19:44:04 +02:00
krawieck 8c5def182d Add admin section 2020-09-08 19:14:05 +02:00
krawieck c38fc3f7a0 Add trending communities section 2020-09-08 18:57:48 +02:00
Filip Krawczyk 05287f7ef6
Merge pull request #28 from krawieck/amoled-dark-mode 2020-09-08 16:49:03 +02:00
shilangyu 94daf2acc6 moved out logic from UI 2020-09-08 16:41:46 +02:00
shilangyu 8eb31434e2 used expression functions where possible 2020-09-08 16:38:59 +02:00
shilangyu 81b10cf3e3 removed unnecessary dividers 2020-09-08 16:37:58 +02:00
shilangyu 94ff01bc55 moved cancel buttons before add buttons 2020-09-08 16:35:54 +02:00
shilangyu f0d508c37a added black color to background and canvas 2020-09-08 16:31:04 +02:00
shilangyu ffa484d895 capitalized amoled 2020-09-08 10:24:47 +02:00
shilangyu caff01130b added amoled dark mode 2020-09-08 10:23:08 +02:00
shilangyu c08e07311a you can now add accounts/instances 2020-09-08 01:27:02 +02:00
shilangyu 1dee2e21f5 added adding instances 2020-09-08 00:34:09 +02:00
shilangyu ed6c00172c seperated addition of instances and accounts 2020-09-07 23:43:23 +02:00
krawieck 45e42ac322 Convert functions with immidiate returns to expressions
change () { return X; }
    to () => X
2020-09-07 23:13:05 +02:00
krawieck 4deafcb29f Instead of passing to `_AboutTab` hardcode functions
the hardcoded functions are:
* `goToUser`
* `goToModLog`
* `goToCategories`
2020-09-07 23:09:53 +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 c2dedb14ac Make 3 constructors for `CommunityPage` instead of 2
instead of single default constructor using name of the
community, there are now 2 where first takes community
name, and second which takes the id
2020-09-07 21:57:43 +02:00
krawieck f00c02b631 Fix misuse of `assert` 2020-09-07 21:47:33 +02:00
krawieck e7380b4914 Move constructors above methods 2020-09-07 21:42:04 +02:00
krawieck c53cd047b7 Add InstancePage
* top section finished
* about section partially done
2020-09-07 21:29:07 +02:00
krawieck 5509e0bc90 Update property 2020-09-07 20:22:31 +02:00
krawieck 29e40887fb Tiny visual tweaks 2020-09-07 16:24:09 +02:00
krawieck 86f203ae55 Change flat buttons to outline buttons 2020-09-07 16:23:53 +02:00
krawieck 9f1d5bc5ac Adjust import formatting 2020-09-07 16:19:28 +02:00
krawieck 48a0851e06 Make buttons more round (and stylish ) 2020-09-06 00:39:38 +02:00
krawieck 51100c297c Bump `lemmy_api_client` 2020-09-06 00:20:08 +02:00
krawieck af3787740c Adjust padding on badges 2020-09-06 00:08:50 +02:00
krawieck e3dc2d1e14 Rename `_AboutSection` to `_AboutTab` 2020-09-06 00:03:52 +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 ff827e6126 Add category, modlog, list of mods, and refine other stuff 2020-09-05 19:27:11 +02:00
krawieck be49e93b28 Add about section with description and badges 2020-09-05 18:17:09 +02:00
krawieck de625de379 Add option to change Badge border radius 2020-09-05 18:16:16 +02:00
krawieck 88d796def7 Create `CommunityPage` and create everything above tabs 2020-09-05 17:13:23 +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 67b8ad3730 Remove unnecessary piece of code 2020-09-03 23:18:48 +02:00
krawieck 73a079bfca Change section heading 2020-09-03 23:14:26 +02:00
krawieck b704502c7d Convert `Columns` to `ListView`s where appropriate 2020-09-03 22:20:32 +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 df36d0c06c Make username on top of the screen look like other appbar titles 2020-09-03 22:08:32 +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 a4ff7b5336 Change `Settings` to `SettingsPage` 2020-09-03 14:33:17 +02:00
krawieck 869bb0eccc remove useless import 2020-09-03 14:00:06 +02:00
krawieck e309c165d3 Change `fullPostFuture` to `fullPostSnap` and simplify error handling 2020-09-03 13:56:37 +02:00
krawieck d49715fb64 Revert "Add `Page` suffix to `Settings`"
This reverts commit b5277064a3.
2020-09-03 13:43:51 +02:00
krawieck b5277064a3 Add `Page` suffix to `Settings` 2020-09-03 13:06:10 +02:00
krawieck 31e51c424f Move burden of fetching to full_post 2020-09-03 13:02:38 +02:00
krawieck 8f6a1a6901 Add explenation why calculate hot rank and where
it was taken from
2020-09-03 12:29:39 +02:00
krawieck 11a2e40dfd Change `log` to `log10` and remove useless code 2020-09-03 12:23:46 +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 b13508c011 Add util for getting text color based on background 2020-09-02 23:09:33 +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
shilangyu dda7571c19 save tokens and users in AccountsStore 2020-09-02 15:16:33 +02:00
krawieck fcf622dcfe Add comment sorting with temporary dropdown 2020-09-02 13:49:07 +02:00
krawieck 9e85fd5a2d Add util extension for calculating hot rank of comments 2020-09-02 13:47:45 +02:00
shilangyu 624f0e995a persistently save default accounts 2020-09-02 10:00:08 +02:00
shilangyu 706bf94502 accounts screen in settings:
- you can see your accounts
- you can choose the default one for the instance with a long press
2020-09-02 01:35:30 +02:00
krawieck 82f2084b60 Add FullPost and implement a fair bit of it 2020-09-02 00:05:42 +02:00
shilangyu da107a7ad7 remove accentColor config 2020-09-01 22:05:33 +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 2b3fc87f88 created accounts store 2020-09-01 13:22:37 +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
shilangyu 45d164e23e reverted main.dart 2020-08-31 22:30:11 +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 e1608d9f32 Change `@TODO` to `TODO:` 2020-08-31 19:04:23 +02:00
krawieck 16d490c0ad Add missing import 2020-08-31 18:26:57 +02:00
shilangyu 8c52ec1109 making sure stores are initialiazed before rendering 2020-08-31 17:52:16 +02:00
shilangyu 9133ef94cd fix lint errors 2020-08-31 16:19:44 +02:00
shilangyu f4bd1eb65b added settings screen 2020-08-31 16:17:39 +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
krawieck 663d4bb913 Fix username displaying for comments 2020-08-31 13:39:27 +02:00
krawieck cf3862d2e2 Add markdown rendering to comments 2020-08-31 12:23:32 +02:00
krawieck 2ca3565bfc Moved displaying markdown to separate widget 2020-08-31 12:22:29 +02:00
shilangyu 8b738bf5e5 moved user profile to a widget 2020-08-31 12:05:45 +02:00