32 Commits

Author SHA1 Message Date
7fd1c99287 Use Provider's context.read/watch
Instead of the legacy Provider.of. Less scope of bugs this way and the
code is so much nicer to read.
2023-12-06 08:20:40 +01:00
6d453ee62a Rename app_localization_context to l10n
It's easier to enter and this file now contains far more things
2022-11-27 17:52:03 +01:00
b925da7a47 Use the generated localization instead of easy_localization
Not everywhere, but a large part of the code base.

This way, hot reloading will also reload the strings which makes for
such a better developer experience.
2022-11-19 03:02:01 +01:00
7bb7fb94f2 note.title: Let it be null
This is a remanent from the time when non-nulllable didn't exist in
Dart.
2022-01-14 10:26:03 +01:00
6a915864f2 Move NotesFolder's code to their own folder
The 'core' folder is becoming way too huge.
2021-10-15 12:31:35 +02:00
ed89559268 Remove workaround
The bug seems to be fixed with Flutter 2.5.1

https://github.com/flutter/flutter/issues/32180
2021-09-30 12:53:05 +02:00
33a731a3d7 Add reuse licensing to files in lib 2021-09-15 13:06:43 +02:00
6367466c1b RawEditor: Small experiment to show the searched text
Related to #477
2021-08-30 23:21:37 +02:00
910088a5b4 LocaleKeys++ 2021-08-26 23:09:39 +02:00
c6665fa63e Simplify Settings/Config classes 2021-07-29 12:45:33 +02:00
373a201597 Fix search delegate 2021-07-21 12:32:25 +02:00
d6e2f09a72 Move all settings code to its own folder
Jumping around between the widgets / screens and outside is bit
confusing. Also this way, I can add the stories right here.
2021-06-05 12:23:28 +02:00
9acf3d15f6 null safety++ 2021-06-02 09:40:53 +02:00
d008f0d982 First version of dart migrate
Most of the files haven't been migrated. Lets work on this bit by bit
2021-04-10 22:18:35 +02:00
9499cea164 Remove Settings global
Stop it being a singleton. This means it needs to be passed around a
lot. This sucks, but it's how it should be. I shouldn't be using a
global variable to get around this.

This is needed as Settings will soon become repo specific when we
support multiple repos.

This breaks saving the settings in a file, that feature was toggled off
anyway. It needs to be thought over again.
2020-10-09 00:59:19 +02:00
fac2826800 Implement the scaffolding for search highlighting
Still need to implement the actual highlighting part
2020-09-05 16:14:16 +02:00
a2ffdaabc7 Search: Make string translatable 2020-09-05 16:10:07 +02:00
fa075c25e0 FolderView: Implement selecting a note
This is disabled for now, untill I expose the actions which should be
performed when selecting a note.
2020-09-05 15:53:26 +02:00
6ba0f3974a NoteEditor: Pass it the parentFolder
A note has a parent which is the physical folder it is inside, and a
parent folder which it is being displayed inside. It's useful to have
the latter as that can be used to display the next note - in the case of
the Journal Editor, and open the graph view as well.
2020-08-20 10:42:39 +02:00
b85f9028fe Half implement Note selection in a FolderView
This allows you to long press on a note and select it, thereby allowing
you to perform actions on it, without opening the note.

This is disabled for note, as it isn't completely implemented. I'm not
sure how to pass down the informatin on which Note is selected.
2020-07-31 20:36:20 +02:00
9d00fdac06 Use import_sorter
flutter pub run import_sorter:main --no-comments

The code feels much cleaner
2020-07-24 12:43:28 +02:00
5d7f616c6e const++ 2020-07-21 10:46:03 +02:00
3c3c49e099 Search: Check if filename matches
Fixes #95

We really need search highlighting to showcase why an item matched while
searching. Additionally, soon we may need to give the user control over
what all should be searched.
2020-04-20 00:37:48 +02:00
7aea2611bf Allow the StandardFolderView to be customized
The customization screen is very ugly and this entire thing feels
extremely hacky with the abstractions leaking out everywhere. However,
it does work.

I'll clean it up another day.
2020-03-11 14:48:32 +01:00
b25ed00830 Add the concept of a FolderView
For now we just have the StandardView which is the same as it was
previously.
2020-03-05 02:10:27 +01:00
9f2fa7c3e4 Search: All look in the title
Fixes #64
2020-02-17 14:58:28 +01:00
a97bdd8f92 Add a VirtualNotesFolder
Also disable the SortedNotesFolder - it's buggy.

This simplifies using a JournalList as one doesn't need to pick between
a list of notes / notesfolder.
2020-02-09 18:08:57 +01:00
cfb2703414 SearchDelegate: Remove it when pressing 'x'
Usually 'x' just clears the query, but if there is no query it is
strange that nothing happens on pressing it.
2020-02-09 16:32:35 +01:00
4bfd04fa2d Simplify code 2020-02-06 01:46:46 +01:00
143a1d95c7 First iteration of animating the JournalList
Now on adding / removing elements, the list is animated. It looks
slightly better.
2020-02-06 01:29:30 +01:00
8761f96bbe UndoSnackBar: Stop using Fimber
It makes everything far more complicated, but at least this way the FAB
moves along with the scaffold. With Fimber, that is not the case, and it
is very annoying.
2020-01-31 17:41:05 +01:00
51e42780d6 Split NoteSearchDelegate into its own file 2020-01-31 16:12:55 +01:00