Commit Graph

364 Commits

Author SHA1 Message Date
Filip Krawczyk 9ff62f86c5 revise the way editor toolbar sticks to the bottom 2022-08-25 23:56:11 +02:00
Filip Krawczyk 2d7d2a64bd move part of the functionality to EditorController for clutter reduction 2022-08-25 23:46:43 +02:00
Filip Krawczyk c15cfdf02c add Material back in -_- cuz it's needed for splash 2022-08-25 23:21:28 +02:00
Filip Krawczyk 87726f283b make end indice exclusive 2022-08-25 21:56:49 +02:00
Filip Krawczyk b2ef0883e3 remove store from being a property. also better animation 2022-08-25 18:22:14 +02:00
Filip Krawczyk e3b561835b remove magic number in favor of calculating it on the fly 2022-08-25 17:50:06 +02:00
Filip Krawczyk 9ec5410273 remove unneed FocusScope & Focus 2022-08-25 17:45:22 +02:00
Filip Krawczyk d11a46393b remove unneeded material 2022-08-25 17:42:31 +02:00
Filip Krawczyk c83e93c755 add transition for toolbar appearing and disappearing 2022-08-25 17:40:37 +02:00
Filip Krawczyk 2cc82e6a45 fix 2022-08-25 17:30:02 +02:00
Filip Krawczyk 90553794b2
Update lib/widgets/editor/editor_toolbar.dart
Co-authored-by: Marcin Wojnarowski <xmarcinmarcin@gmail.com>
2022-08-25 17:29:28 +02:00
Filip Krawczyk b39d6b06d7 create widget for stuff that sticks to bottom 2022-08-25 17:27:40 +02:00
Filip Krawczyk 6729a040ea make list completion more reusable 2022-08-25 17:24:05 +02:00
Filip Krawczyk cc8441dabc toolbar is now only present when textfield is focused
also added it to manage account page
2022-08-23 19:29:01 +02:00
Filip Krawczyk 12084a3421 remove some unnecessary regex escapes 2022-08-23 00:36:31 +02:00
Filip Krawczyk cda72a1174 CR Small Changes
* regex fix http?s -> https?
* file rename: formatter.dart -> markdown_formatter.dart to match the class name inside
* add + as continuoable list
* rename: listContinuation          -> unorderedListContinuation
           numberedListContinuation -> orderedListContinuation
* fix typo: convenience
* fix: doc instead of comment
* rename for readability: startingIndex -> from
* function & arg rename: lineBefore(int endingIndex) -> lineUpTo(int characterIndex)
* parse -> tryParse
* localize user picker & commmunity picker
* HookWidget -> StatelessWidget where needed
* Toolbar -> EditorToolbar for less ambiguity
* fix typo: surroungs -> surrounds
* remove debug logA
* more localization stuff
* title -> label on add link dialog
* Reformat -> _Reformat
* use store when in scope instead of context.read
* remove useless Stack (oops)
2022-08-23 00:34:10 +02:00
Filip Krawczyk 821558314e
Update lib/widgets/editor/editor_toolbar.dart
Co-authored-by: Marcin Wojnarowski <xmarcinmarcin@gmail.com>
2022-08-22 23:59:56 +02:00
Filip Krawczyk 43fb2a8ceb add placeholder text to l10n 2022-08-21 23:49:03 +02:00
Filip Krawczyk 4cd8b9855c add toolbar to comments 2022-08-21 23:09:25 +02:00
Filip Krawczyk 1fcc95d6b9 make sure link is a link 2022-08-21 23:08:00 +02:00
Filip Krawczyk cd1f7a3be3 add tooltips 2022-08-21 22:57:56 +02:00
Filip Krawczyk 09f1f54c05 implement more buttons
* header
* quote
2022-08-21 21:52:31 +02:00
Filip Krawczyk 462ce5df76 added functionality to:
* info button
* spoiler button
2022-08-21 20:47:30 +02:00
Filip Krawczyk 63032ebae1 add selecting of users and communities
also made simplified version of reformat
2022-08-21 19:03:22 +02:00
Filip Krawczyk 116b0d7961 add store with purpose of uploading images 2022-08-21 16:00:54 +02:00
Filip Krawczyk 663b45bc21 oops 😅 2022-08-09 00:06:14 +02:00
Filip Krawczyk 79f68ee732 rename file to conform to convention 2022-08-09 00:05:55 +02:00
Filip Krawczyk 3c295552df list button implementation 2022-08-05 11:01:52 +02:00
Filip Krawczyk 062a53fdd9 add safearea for toolbar 2022-08-05 11:01:52 +02:00
Filip Krawczyk 33ff99510f put regex to private variable 2022-08-05 11:01:52 +02:00
Filip Krawczyk 81fadffa14 regex typo fix 2022-08-05 11:01:52 +02:00
Filip Krawczyk 14b7813243 add functionality to more buttons
* add several extensions on TextEditingController for convinience
* add "add link" dialog + functionality
* add functionality to surround buttons:
  * italics,
  * stikethough,
  * superscript,
  * subscript,
  * code
2022-08-05 11:01:52 +02:00
Filip Krawczyk ce41b7e18c editor reorganization + first changes
* added toolbar with buttons
* bold button works
* added input formatter for user convieniance
2022-08-05 11:01:52 +02:00
shilangyu 9ed7b89d68 Regenerate files 2022-07-15 21:21:02 +02:00
shilangyu 6136e4a408 Bump mobx 2022-05-13 15:58:01 +02:00
shilangyu 4533be634e Enable new lints 2022-05-11 22:23:18 +02:00
shilangyu df85b6271e Merge branch 'master' into feature/create-post-redesign 2022-05-03 18:09:33 +02:00
shilangyu 5068eb900f Update link launcher 2022-04-30 16:24:29 +02:00
shilangyu f5b02a369b Bump deps 2022-04-30 16:24:29 +02:00
shilangyu 6a814ab128 Add searching to CreatePostStore 2022-01-20 11:55:23 +01:00
shilangyu 7a13a94e51 Initial refactor 2022-01-20 11:55:22 +01:00
Marcin Wojnarowski 88608ea9e1
Migrate instance page to mobx + l10 strings (#316) 2022-01-20 11:50:24 +01:00
Marcin Wojnarowski 8712691926
Upgrade to flutter 2.8.1 (#308) 2022-01-06 16:05:46 +01:00
Marcin Wojnarowski 6bb5ca4473
Change repo links (#306) 2022-01-06 15:28:42 +01:00
Marcin Wojnarowski d4d4a5b999
Migrate modlog to mobx (#303)
* Migrate modlog to mobx

* Remove column

* Add MobxProvider and DisposableStore

* Add modlog store tests
2021-12-04 18:03:54 +01:00
Marcin Wojnarowski d87a8a83c3
Localize rest of intl (#301)
* Localize rest of intl

* Add changelog entry
2021-11-25 18:49:43 +01:00
Filip Krawczyk 95d8ee7fa7
refactor community page to use mobx (#299) 2021-11-25 18:12:36 +01:00
Marcin Wojnarowski 1e6e8a7774
L10n/timeago (#298)
* Change arb dir

* Localize timeago

* Document changes

* Add missing language names

* Fix language tags

* Fix translations
2021-11-16 17:06:07 +01:00
Marcin Wojnarowski e881dde992
Rename and remove stuff, add PullToRefresh (#293)
* Rename files

* Add PullToRefresh

* Remove l10n gen from repo

* Format l10n files in CI
2021-11-12 17:01:17 +01:00
Marcin Wojnarowski 6e5470c05c
Stop using l10n synthetic package (#289)
* Stop using l10n synthetic package

* Remove nullability

* Keep l10n gen in repo
2021-11-05 21:37:27 +01:00